Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultTimeout = 3 * time.Second DefaultAttempts = 2 )
View Source
const ( InReplyTo = "inReplyTo" TagType = "type" TagName = "name" Attachment = "attachment" AttachmentURL = "url" AttachmentMediaType = "mediaType" Tag = "tag" TagTypeHashtag = "Hashtag" TagTypeMention = "Mention" KafkaTopic = "kafka_topic" )
Variables ¶
This section is empty.
Functions ¶
func MessageTypeStrings ¶
func MessageTypeStrings() []string
MessageTypeStrings returns a slice of all String values of the enum
Types ¶
type MessageType ¶
type MessageType int
const ( MessageTypeNone MessageType = iota // Invalid default value MessageTypeCreate // Create ActivityPub message MessageTypeAnnounce // Announce ActivityPub message MessageTypeLike // Like ActivityPub message )
func MessageTypeString ¶
func MessageTypeString(s string) (MessageType, error)
MessageTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func MessageTypeValues ¶
func MessageTypeValues() []MessageType
MessageTypeValues returns all values of the enum
func (MessageType) IsAMessageType ¶
func (i MessageType) IsAMessageType() bool
IsAMessageType returns "true" if the value is listed in the enum definition. "false" otherwise
func (MessageType) String ¶
func (i MessageType) String() string
func (MessageType) Values ¶
func (MessageType) Values() []string
Click to show internal directories.
Click to hide internal directories.