Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ContactActionFollow = ContactAction{"follow"} ContactActionUnfollow = ContactAction{"unfollow"} ContactActionBlock = ContactAction{"block"} ContactActionUnblock = ContactAction{"unblock"} )
Functions ¶
This section is empty.
Types ¶
type Contact ¶
type Contact struct {
// contains filtered or unexported fields
}
func MustNewContact ¶
func MustNewContact(contact refs.Identity, actions ContactActions) Contact
func NewContact ¶
func NewContact(contact refs.Identity, actions ContactActions) (Contact, error)
func (Contact) Actions ¶
func (c Contact) Actions() ContactActions
func (Contact) Type ¶
func (c Contact) Type() MessageContentType
type ContactAction ¶
type ContactAction struct {
// contains filtered or unexported fields
}
func (ContactAction) IsZero ¶
func (a ContactAction) IsZero() bool
type ContactActions ¶
type ContactActions struct {
// contains filtered or unexported fields
}
func MustNewContactActions ¶
func MustNewContactActions(actions []ContactAction) ContactActions
func NewContactActions ¶
func NewContactActions(actions []ContactAction) (ContactActions, error)
func (ContactActions) IsZero ¶
func (a ContactActions) IsZero() bool
func (ContactActions) List ¶
func (a ContactActions) List() []ContactAction
type KnownMessageContent ¶
type KnownMessageContent interface {
Type() MessageContentType
}
type MessageContentType ¶
type MessageContentType string // todo struct with strings.ToLower or pragma nocompare?
func (MessageContentType) IsZero ¶
func (t MessageContentType) IsZero() bool
Click to show internal directories.
Click to hide internal directories.