ev/app/webfinger/events.go

45 lines
1.0 KiB
Go
Raw Normal View History

2023-01-11 19:42:06 -07:00
package webfinger
import (
2023-07-12 17:35:02 -06:00
"go.sour.is/ev/pkg/event"
2023-01-11 19:42:06 -07:00
)
type SubjectSet struct {
Subject string `json:"subject"`
Aliases []string `json:"aliases,omitempty"`
Properties map[string]*string `json:"properties,omitempty"`
event.IsEvent `json:"-"`
2023-01-11 19:42:06 -07:00
}
type SubjectDeleted struct {
2023-02-26 22:33:01 -07:00
Subject string `json:"subject"`
2023-01-11 19:42:06 -07:00
event.IsEvent `json:"-"`
2023-01-11 19:42:06 -07:00
}
var _ event.Event = (*SubjectDeleted)(nil)
type LinkSet struct {
Index uint64 `json:"idx"`
2023-01-11 19:42:06 -07:00
Rel string `json:"rel"`
Type string `json:"type,omitempty"`
HRef string `json:"href,omitempty"`
Titles map[string]string `json:"titles,omitempty"`
Properties map[string]*string `json:"properties,omitempty"`
2023-05-29 09:48:20 -06:00
Template string `json:"template,omitempty"`
2023-01-11 19:42:06 -07:00
event.IsEvent `json:"-"`
2023-01-11 19:42:06 -07:00
}
var _ event.Event = (*LinkSet)(nil)
type LinkDeleted struct {
Index uint64 `json:"idx"`
Rel string `json:"rel"`
2023-01-11 19:42:06 -07:00
event.IsEvent `json:"-"`
2023-01-11 19:42:06 -07:00
}
var _ event.Event = (*LinkDeleted)(nil)