You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
381 B

2 years ago
  1. package events
  2. import "fmt"
  3. type AliasAdded struct {
  4. ID string
  5. Alias string
  6. }
  7. func (e AliasAdded) EventDescription() string {
  8. return fmt.Sprintf("AliasAdded(id=%s, alias=%s)", e.ID, e.Alias)
  9. }
  10. type AliasRemoved struct {
  11. ID string
  12. Alias string
  13. }
  14. func (e AliasRemoved) EventDescription() string {
  15. return fmt.Sprintf("AliasRemoved(id=%s, alias=%s)", e.ID, e.Alias)
  16. }