Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorPayloadMaker(w http.ResponseWriter, mimeType string, errs ...*ErrorObject)
- func ErrorResponseMaker(w http.ResponseWriter, mimeType string, status int, detail string, code int)
- func FastPopString(slice []string, elem string) []string
- func MarshalByType(mime string, object marshalable) (*[]byte, error)
- func MimeTypeFromHeader(w http.ResponseWriter, r *http.Request, mimeTypePriority []string) (string, bool)
- func OrderAscFromRequest(r *http.Request) (bool, error)
- func OrderByFromRequest(r *http.Request, orderMapping map[string]string, defaultOrder string) (string, error)
- func PaginationFromRequest(r *http.Request, defaultCount int) (int, int, bool, error)
- func UnmarshalByType(contentType string, body []byte, object unmarshalable) error
- type ChatMessage
- func (*ChatMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ChatMessage) GetDirectMessage() bool
- func (x *ChatMessage) GetFromId() string
- func (x *ChatMessage) GetId() string
- func (m *ChatMessage) GetMeta() isChatMessage_Meta
- func (x *ChatMessage) GetMetaDiscord() *ChatMetaDiscord
- func (x *ChatMessage) GetMetaTwitch() *ChatMetaTwitch
- func (x *ChatMessage) GetReplyToId() string
- func (x *ChatMessage) GetService() ChatService
- func (x *ChatMessage) GetText() string
- func (x *ChatMessage) GetTimestamp() *timestamppb.Timestamp
- func (x *ChatMessage) GetToId() string
- func (*ChatMessage) ProtoMessage()
- func (x *ChatMessage) ProtoReflect() protoreflect.Message
- func (x *ChatMessage) Reset()
- func (x *ChatMessage) String() string
- type ChatMessage_MetaDiscord
- type ChatMessage_MetaTwitch
- type ChatMetaDiscord
- type ChatMetaTwitch
- type ChatService
- func (ChatService) Descriptor() protoreflect.EnumDescriptor
- func (x ChatService) Enum() *ChatService
- func (ChatService) EnumDescriptor() ([]byte, []int)deprecated
- func (x ChatService) Number() protoreflect.EnumNumber
- func (x ChatService) String() string
- func (ChatService) Type() protoreflect.EnumType
- type ChatUserAction
- func (*ChatUserAction) Descriptor() ([]byte, []int)deprecated
- func (x *ChatUserAction) GetAction() ChatUserAction_Action
- func (x *ChatUserAction) GetChannelId() string
- func (x *ChatUserAction) GetId() string
- func (m *ChatUserAction) GetMeta() isChatUserAction_Meta
- func (x *ChatUserAction) GetMetaDiscord() *ChatMetaDiscord
- func (x *ChatUserAction) GetMetaTwitch() *ChatMetaTwitch
- func (x *ChatUserAction) GetService() ChatService
- func (x *ChatUserAction) GetTimestamp() *timestamppb.Timestamp
- func (x *ChatUserAction) GetUserId() string
- func (*ChatUserAction) ProtoMessage()
- func (x *ChatUserAction) ProtoReflect() protoreflect.Message
- func (x *ChatUserAction) Reset()
- func (x *ChatUserAction) String() string
- type ChatUserAction_Action
- func (ChatUserAction_Action) Descriptor() protoreflect.EnumDescriptor
- func (x ChatUserAction_Action) Enum() *ChatUserAction_Action
- func (ChatUserAction_Action) EnumDescriptor() ([]byte, []int)deprecated
- func (x ChatUserAction_Action) Number() protoreflect.EnumNumber
- func (x ChatUserAction_Action) String() string
- func (ChatUserAction_Action) Type() protoreflect.EnumType
- type ChatUserAction_MetaDiscord
- type ChatUserAction_MetaTwitch
- type DiscordChannel
- func (*DiscordChannel) Descriptor() ([]byte, []int)deprecated
- func (x *DiscordChannel) GetApplicationId() int64
- func (x *DiscordChannel) GetGuildId() int64
- func (x *DiscordChannel) GetId() int64
- func (x *DiscordChannel) GetName() string
- func (x *DiscordChannel) GetOwnerId() int64
- func (x *DiscordChannel) GetParentId() int64
- func (x *DiscordChannel) GetType() DiscordChannel_Type
- func (*DiscordChannel) ProtoMessage()
- func (x *DiscordChannel) ProtoReflect() protoreflect.Message
- func (x *DiscordChannel) Reset()
- func (x *DiscordChannel) String() string
- type DiscordChannelList
- func (*DiscordChannelList) Descriptor() ([]byte, []int)deprecated
- func (x *DiscordChannelList) GetData() []*DiscordChannel
- func (*DiscordChannelList) ProtoMessage()
- func (x *DiscordChannelList) ProtoReflect() protoreflect.Message
- func (x *DiscordChannelList) Reset()
- func (x *DiscordChannelList) String() string
- type DiscordChannel_Type
- func (DiscordChannel_Type) Descriptor() protoreflect.EnumDescriptor
- func (x DiscordChannel_Type) Enum() *DiscordChannel_Type
- func (DiscordChannel_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x DiscordChannel_Type) Number() protoreflect.EnumNumber
- func (x DiscordChannel_Type) String() string
- func (DiscordChannel_Type) Type() protoreflect.EnumType
- type DiscordGuild
- func (*DiscordGuild) Descriptor() ([]byte, []int)deprecated
- func (x *DiscordGuild) GetId() int64
- func (x *DiscordGuild) GetName() string
- func (x *DiscordGuild) GetOwnerId() int64
- func (*DiscordGuild) ProtoMessage()
- func (x *DiscordGuild) ProtoReflect() protoreflect.Message
- func (x *DiscordGuild) Reset()
- func (x *DiscordGuild) String() string
- type DiscordGuildList
- type DiscordSendMessageRequest
- func (*DiscordSendMessageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DiscordSendMessageRequest) GetChannelId() int64
- func (x *DiscordSendMessageRequest) GetText() string
- func (*DiscordSendMessageRequest) ProtoMessage()
- func (x *DiscordSendMessageRequest) ProtoReflect() protoreflect.Message
- func (x *DiscordSendMessageRequest) Reset()
- func (x *DiscordSendMessageRequest) String() string
- type DiscordVoiceConnection
- func (*DiscordVoiceConnection) Descriptor() ([]byte, []int)deprecated
- func (x *DiscordVoiceConnection) GetChannelId() int64
- func (x *DiscordVoiceConnection) GetGuildId() int64
- func (x *DiscordVoiceConnection) GetUserId() int64
- func (*DiscordVoiceConnection) ProtoMessage()
- func (x *DiscordVoiceConnection) ProtoReflect() protoreflect.Message
- func (x *DiscordVoiceConnection) Reset()
- func (x *DiscordVoiceConnection) String() string
- type DiscordVoiceConnectionList
- func (*DiscordVoiceConnectionList) Descriptor() ([]byte, []int)deprecated
- func (x *DiscordVoiceConnectionList) GetData() []*DiscordVoiceConnection
- func (*DiscordVoiceConnectionList) ProtoMessage()
- func (x *DiscordVoiceConnectionList) ProtoReflect() protoreflect.Message
- func (x *DiscordVoiceConnectionList) Reset()
- func (x *DiscordVoiceConnectionList) String() string
- type DiscordVoiceConnectionSayRequest
- func (*DiscordVoiceConnectionSayRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DiscordVoiceConnectionSayRequest) GetChannelId() int64
- func (x *DiscordVoiceConnectionSayRequest) GetText() string
- func (x *DiscordVoiceConnectionSayRequest) GetVoice() DiscordVoiceConnectionSayRequest_Voice
- func (*DiscordVoiceConnectionSayRequest) ProtoMessage()
- func (x *DiscordVoiceConnectionSayRequest) ProtoReflect() protoreflect.Message
- func (x *DiscordVoiceConnectionSayRequest) Reset()
- func (x *DiscordVoiceConnectionSayRequest) String() string
- type DiscordVoiceConnectionSayRequest_Voice
- func (DiscordVoiceConnectionSayRequest_Voice) Descriptor() protoreflect.EnumDescriptor
- func (x DiscordVoiceConnectionSayRequest_Voice) Enum() *DiscordVoiceConnectionSayRequest_Voice
- func (DiscordVoiceConnectionSayRequest_Voice) EnumDescriptor() ([]byte, []int)deprecated
- func (x DiscordVoiceConnectionSayRequest_Voice) Number() protoreflect.EnumNumber
- func (x DiscordVoiceConnectionSayRequest_Voice) String() string
- func (DiscordVoiceConnectionSayRequest_Voice) Type() protoreflect.EnumType
- type ErrorObject
- func (*ErrorObject) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorObject) GetCode() string
- func (x *ErrorObject) GetDetail() string
- func (x *ErrorObject) GetStatus() string
- func (x *ErrorObject) GetTitle() string
- func (*ErrorObject) ProtoMessage()
- func (x *ErrorObject) ProtoReflect() protoreflect.Message
- func (x *ErrorObject) Reset()
- func (x *ErrorObject) String() string
- type ErrorPayload
- type Ism
- func (*Ism) Descriptor() ([]byte, []int)deprecated
- func (x *Ism) GetId() string
- func (x *Ism) GetSayers() []*Sayer
- func (x *Ism) GetText() string
- func (x *Ism) GetTts() string
- func (*Ism) ProtoMessage()
- func (x *Ism) ProtoReflect() protoreflect.Message
- func (x *Ism) Reset()
- func (x *Ism) String() string
- type IsmList
- type Sayer
- type SayerList
Constants ¶
const ( ErrorCodeNone = 0 ErrorCodeMalformedJSON = 1 ErrorCodeMalformedProtobuf = 2 ErrorCodeMalformedHeader = 3 ErrorCodeMissingAttr = 2201 ErrorCodeRelationshipNotFound = 2202 )
const ( MimeTypeJson = "application/json" MimeTypeProtobuf = "application/x-protobuf" )
Variables ¶
var ( ChatService_name = map[int32]string{ 0: "UNKNOWN", 1: "DISCORD", 2: "TWITCH", } ChatService_value = map[string]int32{ "UNKNOWN": 0, "DISCORD": 1, "TWITCH": 2, } )
Enum value maps for ChatService.
var ( ChatUserAction_Action_name = map[int32]string{ 0: "UNKNOWN_ACTION", 1: "JOIN", 2: "PART", } ChatUserAction_Action_value = map[string]int32{ "UNKNOWN_ACTION": 0, "JOIN": 1, "PART": 2, } )
Enum value maps for ChatUserAction_Action.
var ( DiscordChannel_Type_name = map[int32]string{ 0: "GUILD_TEXT", 1: "DM", 2: "GUILD_VOICE", 3: "GROUP_DM", 4: "GUILD_CATEGORY", 5: "GUILD_NEWS", 6: "GUILD_STORE", } DiscordChannel_Type_value = map[string]int32{ "GUILD_TEXT": 0, "DM": 1, "GUILD_VOICE": 2, "GROUP_DM": 3, "GUILD_CATEGORY": 4, "GUILD_NEWS": 5, "GUILD_STORE": 6, } )
Enum value maps for DiscordChannel_Type.
var ( DiscordVoiceConnectionSayRequest_Voice_name = map[int32]string{ 0: "DEFAULT", 1: "RUSSELL", 2: "NICOLE", 3: "OLIVIA", 4: "AMY", 6: "EMMA", 7: "BRIAN", 8: "ADITI", 9: "RAVEENA", 10: "JOANNA", 12: "KENDRA", 13: "KIMBERLY", 14: "SALLI", 15: "JOEY", 16: "MATTHEW", 18: "GERAINT", } DiscordVoiceConnectionSayRequest_Voice_value = map[string]int32{ "DEFAULT": 0, "RUSSELL": 1, "NICOLE": 2, "OLIVIA": 3, "AMY": 4, "EMMA": 6, "BRIAN": 7, "ADITI": 8, "RAVEENA": 9, "JOANNA": 10, "KENDRA": 12, "KIMBERLY": 13, "SALLI": 14, "JOEY": 15, "MATTHEW": 16, "GERAINT": 18, } )
Enum value maps for DiscordVoiceConnectionSayRequest_Voice.
var ( ErrAlreadyCreated = errors.New("already created") ErrApiError = errors.New("api returned an error") ErrInvalidCount = errors.New("value of count must be greater than zero") ErrInvalidPage = errors.New("value of page must be greater than zero") ErrMalformedJSON = errors.New("malformed json") ErrMalformedProtobuf = errors.New("malformed protobuf") ErrNotCreated = errors.New("not created") ErrUnknownAttribute = errors.New("unknown attribute") ErrUnknownType = errors.New("unknown type") )
var DefaultAcceptType = MimeTypeProtobuf + "," + MimeTypeJson + ";q=0.9"
var DefaultMimeTypePriority = []string{ MimeTypeJson, MimeTypeProtobuf, }
var File_chat_message_proto protoreflect.FileDescriptor
var File_chat_meta_proto protoreflect.FileDescriptor
var File_chat_user_action_proto protoreflect.FileDescriptor
var File_discord_channel_proto protoreflect.FileDescriptor
var File_discord_guild_proto protoreflect.FileDescriptor
var File_discord_send_message_request_proto protoreflect.FileDescriptor
var File_discord_voice_connection_proto protoreflect.FileDescriptor
var File_discord_voice_connection_say_request_proto protoreflect.FileDescriptor
var File_error_object_proto protoreflect.FileDescriptor
var File_error_payload_proto protoreflect.FileDescriptor
var File_ism_proto protoreflect.FileDescriptor
var File_sayer_proto protoreflect.FileDescriptor
Functions ¶
func ErrorPayloadMaker ¶ added in v0.24.0
func ErrorPayloadMaker(w http.ResponseWriter, mimeType string, errs ...*ErrorObject)
func ErrorResponseMaker ¶
func FastPopString ¶ added in v0.17.0
func MarshalByType ¶ added in v0.25.0
func MimeTypeFromHeader ¶ added in v0.10.0
func OrderByFromRequest ¶ added in v0.27.0
func PaginationFromRequest ¶ added in v0.27.0
func UnmarshalByType ¶ added in v0.25.0
Types ¶
type ChatMessage ¶ added in v0.9.0
type ChatMessage struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Service ChatService `protobuf:"varint,2,opt,name=service,proto3,enum=hivelib.ChatService" json:"service,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` ToId string `protobuf:"bytes,4,opt,name=to_id,json=toId,proto3" json:"to_id,omitempty"` FromId string `protobuf:"bytes,5,opt,name=from_id,json=fromId,proto3" json:"from_id,omitempty"` ReplyToId string `protobuf:"bytes,6,opt,name=reply_to_id,json=replyToId,proto3" json:"reply_to_id,omitempty"` DirectMessage bool `protobuf:"varint,7,opt,name=direct_message,json=directMessage,proto3" json:"direct_message,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Types that are assignable to Meta: // *ChatMessage_MetaDiscord // *ChatMessage_MetaTwitch Meta isChatMessage_Meta `protobuf_oneof:"meta"` // contains filtered or unexported fields }
func (*ChatMessage) Descriptor
deprecated
added in
v0.9.0
func (*ChatMessage) Descriptor() ([]byte, []int)
Deprecated: Use ChatMessage.ProtoReflect.Descriptor instead.
func (*ChatMessage) GetDirectMessage ¶ added in v0.9.0
func (x *ChatMessage) GetDirectMessage() bool
func (*ChatMessage) GetFromId ¶ added in v0.9.0
func (x *ChatMessage) GetFromId() string
func (*ChatMessage) GetId ¶ added in v0.9.0
func (x *ChatMessage) GetId() string
func (*ChatMessage) GetMeta ¶ added in v0.9.0
func (m *ChatMessage) GetMeta() isChatMessage_Meta
func (*ChatMessage) GetMetaDiscord ¶ added in v0.19.1
func (x *ChatMessage) GetMetaDiscord() *ChatMetaDiscord
func (*ChatMessage) GetMetaTwitch ¶ added in v0.19.1
func (x *ChatMessage) GetMetaTwitch() *ChatMetaTwitch
func (*ChatMessage) GetReplyToId ¶ added in v0.9.0
func (x *ChatMessage) GetReplyToId() string
func (*ChatMessage) GetService ¶ added in v0.9.0
func (x *ChatMessage) GetService() ChatService
func (*ChatMessage) GetText ¶ added in v0.9.0
func (x *ChatMessage) GetText() string
func (*ChatMessage) GetTimestamp ¶ added in v0.17.0
func (x *ChatMessage) GetTimestamp() *timestamppb.Timestamp
func (*ChatMessage) GetToId ¶ added in v0.9.0
func (x *ChatMessage) GetToId() string
func (*ChatMessage) ProtoMessage ¶ added in v0.9.0
func (*ChatMessage) ProtoMessage()
func (*ChatMessage) ProtoReflect ¶ added in v0.9.0
func (x *ChatMessage) ProtoReflect() protoreflect.Message
func (*ChatMessage) Reset ¶ added in v0.9.0
func (x *ChatMessage) Reset()
func (*ChatMessage) String ¶ added in v0.9.0
func (x *ChatMessage) String() string
type ChatMessage_MetaDiscord ¶ added in v0.19.1
type ChatMessage_MetaDiscord struct {
MetaDiscord *ChatMetaDiscord `protobuf:"bytes,9,opt,name=meta_discord,json=metaDiscord,proto3,oneof"`
}
type ChatMessage_MetaTwitch ¶ added in v0.19.1
type ChatMessage_MetaTwitch struct {
MetaTwitch *ChatMetaTwitch `protobuf:"bytes,10,opt,name=meta_twitch,json=metaTwitch,proto3,oneof"`
}
type ChatMetaDiscord ¶ added in v0.9.0
type ChatMetaDiscord struct { GuildId string `protobuf:"bytes,1,opt,name=guild_id,json=guildId,proto3" json:"guild_id,omitempty"` // contains filtered or unexported fields }
func (*ChatMetaDiscord) Descriptor
deprecated
added in
v0.9.0
func (*ChatMetaDiscord) Descriptor() ([]byte, []int)
Deprecated: Use ChatMetaDiscord.ProtoReflect.Descriptor instead.
func (*ChatMetaDiscord) GetGuildId ¶ added in v0.9.0
func (x *ChatMetaDiscord) GetGuildId() string
func (*ChatMetaDiscord) ProtoMessage ¶ added in v0.9.0
func (*ChatMetaDiscord) ProtoMessage()
func (*ChatMetaDiscord) ProtoReflect ¶ added in v0.9.0
func (x *ChatMetaDiscord) ProtoReflect() protoreflect.Message
func (*ChatMetaDiscord) Reset ¶ added in v0.9.0
func (x *ChatMetaDiscord) Reset()
func (*ChatMetaDiscord) String ¶ added in v0.9.0
func (x *ChatMetaDiscord) String() string
type ChatMetaTwitch ¶ added in v0.20.0
type ChatMetaTwitch struct {
// contains filtered or unexported fields
}
func (*ChatMetaTwitch) Descriptor
deprecated
added in
v0.20.0
func (*ChatMetaTwitch) Descriptor() ([]byte, []int)
Deprecated: Use ChatMetaTwitch.ProtoReflect.Descriptor instead.
func (*ChatMetaTwitch) ProtoMessage ¶ added in v0.20.0
func (*ChatMetaTwitch) ProtoMessage()
func (*ChatMetaTwitch) ProtoReflect ¶ added in v0.20.0
func (x *ChatMetaTwitch) ProtoReflect() protoreflect.Message
func (*ChatMetaTwitch) Reset ¶ added in v0.20.0
func (x *ChatMetaTwitch) Reset()
func (*ChatMetaTwitch) String ¶ added in v0.20.0
func (x *ChatMetaTwitch) String() string
type ChatService ¶ added in v0.19.0
type ChatService int32
const ( ChatService_UNKNOWN ChatService = 0 ChatService_DISCORD ChatService = 1 ChatService_TWITCH ChatService = 2 )
func (ChatService) Descriptor ¶ added in v0.19.0
func (ChatService) Descriptor() protoreflect.EnumDescriptor
func (ChatService) Enum ¶ added in v0.19.0
func (x ChatService) Enum() *ChatService
func (ChatService) EnumDescriptor
deprecated
added in
v0.19.0
func (ChatService) EnumDescriptor() ([]byte, []int)
Deprecated: Use ChatService.Descriptor instead.
func (ChatService) Number ¶ added in v0.19.0
func (x ChatService) Number() protoreflect.EnumNumber
func (ChatService) String ¶ added in v0.19.0
func (x ChatService) String() string
func (ChatService) Type ¶ added in v0.19.0
func (ChatService) Type() protoreflect.EnumType
type ChatUserAction ¶ added in v0.19.0
type ChatUserAction struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Service ChatService `protobuf:"varint,2,opt,name=service,proto3,enum=hivelib.ChatService" json:"service,omitempty"` UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` ChannelId string `protobuf:"bytes,4,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` Action ChatUserAction_Action `protobuf:"varint,5,opt,name=action,proto3,enum=hivelib.ChatUserAction_Action" json:"action,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Types that are assignable to Meta: // *ChatUserAction_MetaDiscord // *ChatUserAction_MetaTwitch Meta isChatUserAction_Meta `protobuf_oneof:"meta"` // contains filtered or unexported fields }
func (*ChatUserAction) Descriptor
deprecated
added in
v0.19.0
func (*ChatUserAction) Descriptor() ([]byte, []int)
Deprecated: Use ChatUserAction.ProtoReflect.Descriptor instead.
func (*ChatUserAction) GetAction ¶ added in v0.19.0
func (x *ChatUserAction) GetAction() ChatUserAction_Action
func (*ChatUserAction) GetChannelId ¶ added in v0.19.1
func (x *ChatUserAction) GetChannelId() string
func (*ChatUserAction) GetId ¶ added in v0.19.0
func (x *ChatUserAction) GetId() string
func (*ChatUserAction) GetMeta ¶ added in v0.19.0
func (m *ChatUserAction) GetMeta() isChatUserAction_Meta
func (*ChatUserAction) GetMetaDiscord ¶ added in v0.19.1
func (x *ChatUserAction) GetMetaDiscord() *ChatMetaDiscord
func (*ChatUserAction) GetMetaTwitch ¶ added in v0.19.1
func (x *ChatUserAction) GetMetaTwitch() *ChatMetaTwitch
func (*ChatUserAction) GetService ¶ added in v0.19.0
func (x *ChatUserAction) GetService() ChatService
func (*ChatUserAction) GetTimestamp ¶ added in v0.19.0
func (x *ChatUserAction) GetTimestamp() *timestamppb.Timestamp
func (*ChatUserAction) GetUserId ¶ added in v0.19.0
func (x *ChatUserAction) GetUserId() string
func (*ChatUserAction) ProtoMessage ¶ added in v0.19.0
func (*ChatUserAction) ProtoMessage()
func (*ChatUserAction) ProtoReflect ¶ added in v0.19.0
func (x *ChatUserAction) ProtoReflect() protoreflect.Message
func (*ChatUserAction) Reset ¶ added in v0.19.0
func (x *ChatUserAction) Reset()
func (*ChatUserAction) String ¶ added in v0.19.0
func (x *ChatUserAction) String() string
type ChatUserAction_Action ¶ added in v0.19.0
type ChatUserAction_Action int32
const ( ChatUserAction_UNKNOWN_ACTION ChatUserAction_Action = 0 ChatUserAction_JOIN ChatUserAction_Action = 1 ChatUserAction_PART ChatUserAction_Action = 2 )
func (ChatUserAction_Action) Descriptor ¶ added in v0.19.0
func (ChatUserAction_Action) Descriptor() protoreflect.EnumDescriptor
func (ChatUserAction_Action) Enum ¶ added in v0.19.0
func (x ChatUserAction_Action) Enum() *ChatUserAction_Action
func (ChatUserAction_Action) EnumDescriptor
deprecated
added in
v0.19.0
func (ChatUserAction_Action) EnumDescriptor() ([]byte, []int)
Deprecated: Use ChatUserAction_Action.Descriptor instead.
func (ChatUserAction_Action) Number ¶ added in v0.19.0
func (x ChatUserAction_Action) Number() protoreflect.EnumNumber
func (ChatUserAction_Action) String ¶ added in v0.19.0
func (x ChatUserAction_Action) String() string
func (ChatUserAction_Action) Type ¶ added in v0.19.0
func (ChatUserAction_Action) Type() protoreflect.EnumType
type ChatUserAction_MetaDiscord ¶ added in v0.19.1
type ChatUserAction_MetaDiscord struct {
MetaDiscord *ChatMetaDiscord `protobuf:"bytes,7,opt,name=meta_discord,json=metaDiscord,proto3,oneof"`
}
type ChatUserAction_MetaTwitch ¶ added in v0.19.1
type ChatUserAction_MetaTwitch struct {
MetaTwitch *ChatMetaTwitch `protobuf:"bytes,8,opt,name=meta_twitch,json=metaTwitch,proto3,oneof"`
}
type DiscordChannel ¶ added in v0.9.0
type DiscordChannel struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` GuildId int64 `protobuf:"varint,2,opt,name=guild_id,json=guildId,proto3" json:"guild_id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Type DiscordChannel_Type `protobuf:"varint,4,opt,name=type,proto3,enum=hivelib.DiscordChannel_Type" json:"type,omitempty"` ParentId int64 `protobuf:"varint,5,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` OwnerId int64 `protobuf:"varint,6,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` ApplicationId int64 `protobuf:"varint,7,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"` // contains filtered or unexported fields }
func (*DiscordChannel) Descriptor
deprecated
added in
v0.9.0
func (*DiscordChannel) Descriptor() ([]byte, []int)
Deprecated: Use DiscordChannel.ProtoReflect.Descriptor instead.
func (*DiscordChannel) GetApplicationId ¶ added in v0.9.0
func (x *DiscordChannel) GetApplicationId() int64
func (*DiscordChannel) GetGuildId ¶ added in v0.9.0
func (x *DiscordChannel) GetGuildId() int64
func (*DiscordChannel) GetId ¶ added in v0.9.0
func (x *DiscordChannel) GetId() int64
func (*DiscordChannel) GetName ¶ added in v0.9.0
func (x *DiscordChannel) GetName() string
func (*DiscordChannel) GetOwnerId ¶ added in v0.9.0
func (x *DiscordChannel) GetOwnerId() int64
func (*DiscordChannel) GetParentId ¶ added in v0.9.0
func (x *DiscordChannel) GetParentId() int64
func (*DiscordChannel) GetType ¶ added in v0.9.0
func (x *DiscordChannel) GetType() DiscordChannel_Type
func (*DiscordChannel) ProtoMessage ¶ added in v0.9.0
func (*DiscordChannel) ProtoMessage()
func (*DiscordChannel) ProtoReflect ¶ added in v0.9.0
func (x *DiscordChannel) ProtoReflect() protoreflect.Message
func (*DiscordChannel) Reset ¶ added in v0.9.0
func (x *DiscordChannel) Reset()
func (*DiscordChannel) String ¶ added in v0.9.0
func (x *DiscordChannel) String() string
type DiscordChannelList ¶ added in v0.11.0
type DiscordChannelList struct { Data []*DiscordChannel `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*DiscordChannelList) Descriptor
deprecated
added in
v0.11.0
func (*DiscordChannelList) Descriptor() ([]byte, []int)
Deprecated: Use DiscordChannelList.ProtoReflect.Descriptor instead.
func (*DiscordChannelList) GetData ¶ added in v0.11.0
func (x *DiscordChannelList) GetData() []*DiscordChannel
func (*DiscordChannelList) ProtoMessage ¶ added in v0.11.0
func (*DiscordChannelList) ProtoMessage()
func (*DiscordChannelList) ProtoReflect ¶ added in v0.11.0
func (x *DiscordChannelList) ProtoReflect() protoreflect.Message
func (*DiscordChannelList) Reset ¶ added in v0.11.0
func (x *DiscordChannelList) Reset()
func (*DiscordChannelList) String ¶ added in v0.11.0
func (x *DiscordChannelList) String() string
type DiscordChannel_Type ¶ added in v0.9.0
type DiscordChannel_Type int32
const ( DiscordChannel_GUILD_TEXT DiscordChannel_Type = 0 DiscordChannel_DM DiscordChannel_Type = 1 DiscordChannel_GUILD_VOICE DiscordChannel_Type = 2 DiscordChannel_GROUP_DM DiscordChannel_Type = 3 DiscordChannel_GUILD_CATEGORY DiscordChannel_Type = 4 DiscordChannel_GUILD_NEWS DiscordChannel_Type = 5 DiscordChannel_GUILD_STORE DiscordChannel_Type = 6 )
func (DiscordChannel_Type) Descriptor ¶ added in v0.9.0
func (DiscordChannel_Type) Descriptor() protoreflect.EnumDescriptor
func (DiscordChannel_Type) Enum ¶ added in v0.9.0
func (x DiscordChannel_Type) Enum() *DiscordChannel_Type
func (DiscordChannel_Type) EnumDescriptor
deprecated
added in
v0.9.0
func (DiscordChannel_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use DiscordChannel_Type.Descriptor instead.
func (DiscordChannel_Type) Number ¶ added in v0.9.0
func (x DiscordChannel_Type) Number() protoreflect.EnumNumber
func (DiscordChannel_Type) String ¶ added in v0.9.0
func (x DiscordChannel_Type) String() string
func (DiscordChannel_Type) Type ¶ added in v0.9.0
func (DiscordChannel_Type) Type() protoreflect.EnumType
type DiscordGuild ¶ added in v0.9.0
type DiscordGuild struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` OwnerId int64 `protobuf:"varint,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // contains filtered or unexported fields }
func (*DiscordGuild) Descriptor
deprecated
added in
v0.9.0
func (*DiscordGuild) Descriptor() ([]byte, []int)
Deprecated: Use DiscordGuild.ProtoReflect.Descriptor instead.
func (*DiscordGuild) GetId ¶ added in v0.9.0
func (x *DiscordGuild) GetId() int64
func (*DiscordGuild) GetName ¶ added in v0.9.0
func (x *DiscordGuild) GetName() string
func (*DiscordGuild) GetOwnerId ¶ added in v0.9.0
func (x *DiscordGuild) GetOwnerId() int64
func (*DiscordGuild) ProtoMessage ¶ added in v0.9.0
func (*DiscordGuild) ProtoMessage()
func (*DiscordGuild) ProtoReflect ¶ added in v0.9.0
func (x *DiscordGuild) ProtoReflect() protoreflect.Message
func (*DiscordGuild) Reset ¶ added in v0.9.0
func (x *DiscordGuild) Reset()
func (*DiscordGuild) String ¶ added in v0.9.0
func (x *DiscordGuild) String() string
type DiscordGuildList ¶ added in v0.11.0
type DiscordGuildList struct { Data []*DiscordGuild `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*DiscordGuildList) Descriptor
deprecated
added in
v0.11.0
func (*DiscordGuildList) Descriptor() ([]byte, []int)
Deprecated: Use DiscordGuildList.ProtoReflect.Descriptor instead.
func (*DiscordGuildList) GetData ¶ added in v0.11.0
func (x *DiscordGuildList) GetData() []*DiscordGuild
func (*DiscordGuildList) ProtoMessage ¶ added in v0.11.0
func (*DiscordGuildList) ProtoMessage()
func (*DiscordGuildList) ProtoReflect ¶ added in v0.11.0
func (x *DiscordGuildList) ProtoReflect() protoreflect.Message
func (*DiscordGuildList) Reset ¶ added in v0.11.0
func (x *DiscordGuildList) Reset()
func (*DiscordGuildList) String ¶ added in v0.11.0
func (x *DiscordGuildList) String() string
type DiscordSendMessageRequest ¶ added in v0.15.0
type DiscordSendMessageRequest struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` ChannelId int64 `protobuf:"varint,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // contains filtered or unexported fields }
func (*DiscordSendMessageRequest) Descriptor
deprecated
added in
v0.15.0
func (*DiscordSendMessageRequest) Descriptor() ([]byte, []int)
Deprecated: Use DiscordSendMessageRequest.ProtoReflect.Descriptor instead.
func (*DiscordSendMessageRequest) GetChannelId ¶ added in v0.15.0
func (x *DiscordSendMessageRequest) GetChannelId() int64
func (*DiscordSendMessageRequest) GetText ¶ added in v0.15.0
func (x *DiscordSendMessageRequest) GetText() string
func (*DiscordSendMessageRequest) ProtoMessage ¶ added in v0.15.0
func (*DiscordSendMessageRequest) ProtoMessage()
func (*DiscordSendMessageRequest) ProtoReflect ¶ added in v0.15.0
func (x *DiscordSendMessageRequest) ProtoReflect() protoreflect.Message
func (*DiscordSendMessageRequest) Reset ¶ added in v0.15.0
func (x *DiscordSendMessageRequest) Reset()
func (*DiscordSendMessageRequest) String ¶ added in v0.15.0
func (x *DiscordSendMessageRequest) String() string
type DiscordVoiceConnection ¶ added in v0.15.0
type DiscordVoiceConnection struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` GuildId int64 `protobuf:"varint,2,opt,name=guild_id,json=guildId,proto3" json:"guild_id,omitempty"` ChannelId int64 `protobuf:"varint,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // contains filtered or unexported fields }
func (*DiscordVoiceConnection) Descriptor
deprecated
added in
v0.15.0
func (*DiscordVoiceConnection) Descriptor() ([]byte, []int)
Deprecated: Use DiscordVoiceConnection.ProtoReflect.Descriptor instead.
func (*DiscordVoiceConnection) GetChannelId ¶ added in v0.15.0
func (x *DiscordVoiceConnection) GetChannelId() int64
func (*DiscordVoiceConnection) GetGuildId ¶ added in v0.15.0
func (x *DiscordVoiceConnection) GetGuildId() int64
func (*DiscordVoiceConnection) GetUserId ¶ added in v0.15.0
func (x *DiscordVoiceConnection) GetUserId() int64
func (*DiscordVoiceConnection) ProtoMessage ¶ added in v0.15.0
func (*DiscordVoiceConnection) ProtoMessage()
func (*DiscordVoiceConnection) ProtoReflect ¶ added in v0.15.0
func (x *DiscordVoiceConnection) ProtoReflect() protoreflect.Message
func (*DiscordVoiceConnection) Reset ¶ added in v0.15.0
func (x *DiscordVoiceConnection) Reset()
func (*DiscordVoiceConnection) String ¶ added in v0.15.0
func (x *DiscordVoiceConnection) String() string
type DiscordVoiceConnectionList ¶ added in v0.15.0
type DiscordVoiceConnectionList struct { Data []*DiscordVoiceConnection `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*DiscordVoiceConnectionList) Descriptor
deprecated
added in
v0.15.0
func (*DiscordVoiceConnectionList) Descriptor() ([]byte, []int)
Deprecated: Use DiscordVoiceConnectionList.ProtoReflect.Descriptor instead.
func (*DiscordVoiceConnectionList) GetData ¶ added in v0.15.0
func (x *DiscordVoiceConnectionList) GetData() []*DiscordVoiceConnection
func (*DiscordVoiceConnectionList) ProtoMessage ¶ added in v0.15.0
func (*DiscordVoiceConnectionList) ProtoMessage()
func (*DiscordVoiceConnectionList) ProtoReflect ¶ added in v0.15.0
func (x *DiscordVoiceConnectionList) ProtoReflect() protoreflect.Message
func (*DiscordVoiceConnectionList) Reset ¶ added in v0.15.0
func (x *DiscordVoiceConnectionList) Reset()
func (*DiscordVoiceConnectionList) String ¶ added in v0.15.0
func (x *DiscordVoiceConnectionList) String() string
type DiscordVoiceConnectionSayRequest ¶ added in v0.18.0
type DiscordVoiceConnectionSayRequest struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` Voice DiscordVoiceConnectionSayRequest_Voice `protobuf:"varint,2,opt,name=voice,proto3,enum=hivelib.DiscordVoiceConnectionSayRequest_Voice" json:"voice,omitempty"` ChannelId int64 `protobuf:"varint,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // contains filtered or unexported fields }
func (*DiscordVoiceConnectionSayRequest) Descriptor
deprecated
added in
v0.18.0
func (*DiscordVoiceConnectionSayRequest) Descriptor() ([]byte, []int)
Deprecated: Use DiscordVoiceConnectionSayRequest.ProtoReflect.Descriptor instead.
func (*DiscordVoiceConnectionSayRequest) GetChannelId ¶ added in v0.18.0
func (x *DiscordVoiceConnectionSayRequest) GetChannelId() int64
func (*DiscordVoiceConnectionSayRequest) GetText ¶ added in v0.18.0
func (x *DiscordVoiceConnectionSayRequest) GetText() string
func (*DiscordVoiceConnectionSayRequest) GetVoice ¶ added in v0.18.0
func (x *DiscordVoiceConnectionSayRequest) GetVoice() DiscordVoiceConnectionSayRequest_Voice
func (*DiscordVoiceConnectionSayRequest) ProtoMessage ¶ added in v0.18.0
func (*DiscordVoiceConnectionSayRequest) ProtoMessage()
func (*DiscordVoiceConnectionSayRequest) ProtoReflect ¶ added in v0.18.0
func (x *DiscordVoiceConnectionSayRequest) ProtoReflect() protoreflect.Message
func (*DiscordVoiceConnectionSayRequest) Reset ¶ added in v0.18.0
func (x *DiscordVoiceConnectionSayRequest) Reset()
func (*DiscordVoiceConnectionSayRequest) String ¶ added in v0.18.0
func (x *DiscordVoiceConnectionSayRequest) String() string
type DiscordVoiceConnectionSayRequest_Voice ¶ added in v0.18.0
type DiscordVoiceConnectionSayRequest_Voice int32
const ( DiscordVoiceConnectionSayRequest_DEFAULT DiscordVoiceConnectionSayRequest_Voice = 0 DiscordVoiceConnectionSayRequest_RUSSELL DiscordVoiceConnectionSayRequest_Voice = 1 DiscordVoiceConnectionSayRequest_NICOLE DiscordVoiceConnectionSayRequest_Voice = 2 DiscordVoiceConnectionSayRequest_OLIVIA DiscordVoiceConnectionSayRequest_Voice = 3 DiscordVoiceConnectionSayRequest_AMY DiscordVoiceConnectionSayRequest_Voice = 4 //AMY_NEWS = 5; DiscordVoiceConnectionSayRequest_EMMA DiscordVoiceConnectionSayRequest_Voice = 6 DiscordVoiceConnectionSayRequest_BRIAN DiscordVoiceConnectionSayRequest_Voice = 7 DiscordVoiceConnectionSayRequest_ADITI DiscordVoiceConnectionSayRequest_Voice = 8 DiscordVoiceConnectionSayRequest_RAVEENA DiscordVoiceConnectionSayRequest_Voice = 9 DiscordVoiceConnectionSayRequest_JOANNA DiscordVoiceConnectionSayRequest_Voice = 10 //JOANNA_NEWS = 11; DiscordVoiceConnectionSayRequest_KENDRA DiscordVoiceConnectionSayRequest_Voice = 12 DiscordVoiceConnectionSayRequest_KIMBERLY DiscordVoiceConnectionSayRequest_Voice = 13 DiscordVoiceConnectionSayRequest_SALLI DiscordVoiceConnectionSayRequest_Voice = 14 DiscordVoiceConnectionSayRequest_JOEY DiscordVoiceConnectionSayRequest_Voice = 15 DiscordVoiceConnectionSayRequest_MATTHEW DiscordVoiceConnectionSayRequest_Voice = 16 //MATTHEW_NEWS = 17; DiscordVoiceConnectionSayRequest_GERAINT DiscordVoiceConnectionSayRequest_Voice = 18 )
func (DiscordVoiceConnectionSayRequest_Voice) Descriptor ¶ added in v0.18.0
func (DiscordVoiceConnectionSayRequest_Voice) Descriptor() protoreflect.EnumDescriptor
func (DiscordVoiceConnectionSayRequest_Voice) EnumDescriptor
deprecated
added in
v0.18.0
func (DiscordVoiceConnectionSayRequest_Voice) EnumDescriptor() ([]byte, []int)
Deprecated: Use DiscordVoiceConnectionSayRequest_Voice.Descriptor instead.
func (DiscordVoiceConnectionSayRequest_Voice) Number ¶ added in v0.18.0
func (x DiscordVoiceConnectionSayRequest_Voice) Number() protoreflect.EnumNumber
func (DiscordVoiceConnectionSayRequest_Voice) String ¶ added in v0.18.0
func (x DiscordVoiceConnectionSayRequest_Voice) String() string
func (DiscordVoiceConnectionSayRequest_Voice) Type ¶ added in v0.18.0
func (DiscordVoiceConnectionSayRequest_Voice) Type() protoreflect.EnumType
type ErrorObject ¶
type ErrorObject struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` Code string `protobuf:"bytes,4,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*ErrorObject) Descriptor
deprecated
func (*ErrorObject) Descriptor() ([]byte, []int)
Deprecated: Use ErrorObject.ProtoReflect.Descriptor instead.
func (*ErrorObject) GetCode ¶
func (x *ErrorObject) GetCode() string
func (*ErrorObject) GetDetail ¶
func (x *ErrorObject) GetDetail() string
func (*ErrorObject) GetStatus ¶
func (x *ErrorObject) GetStatus() string
func (*ErrorObject) GetTitle ¶
func (x *ErrorObject) GetTitle() string
func (*ErrorObject) ProtoMessage ¶
func (*ErrorObject) ProtoMessage()
func (*ErrorObject) ProtoReflect ¶
func (x *ErrorObject) ProtoReflect() protoreflect.Message
func (*ErrorObject) Reset ¶
func (x *ErrorObject) Reset()
func (*ErrorObject) String ¶
func (x *ErrorObject) String() string
type ErrorPayload ¶
type ErrorPayload struct { Errors []*ErrorObject `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*ErrorPayload) Descriptor
deprecated
func (*ErrorPayload) Descriptor() ([]byte, []int)
Deprecated: Use ErrorPayload.ProtoReflect.Descriptor instead.
func (*ErrorPayload) GetErrors ¶
func (x *ErrorPayload) GetErrors() []*ErrorObject
func (*ErrorPayload) ProtoMessage ¶
func (*ErrorPayload) ProtoMessage()
func (*ErrorPayload) ProtoReflect ¶
func (x *ErrorPayload) ProtoReflect() protoreflect.Message
func (*ErrorPayload) Reset ¶
func (x *ErrorPayload) Reset()
func (*ErrorPayload) String ¶
func (x *ErrorPayload) String() string
type Ism ¶
type Ism struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` Tts string `protobuf:"bytes,3,opt,name=tts,proto3" json:"tts,omitempty"` Sayers []*Sayer `protobuf:"bytes,4,rep,name=sayers,proto3" json:"sayers,omitempty"` // contains filtered or unexported fields }
func (*Ism) Descriptor
deprecated
func (*Ism) ProtoMessage ¶
func (*Ism) ProtoMessage()
func (*Ism) ProtoReflect ¶
func (x *Ism) ProtoReflect() protoreflect.Message
type IsmList ¶ added in v0.21.0
type IsmList struct { Data []*Ism `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*IsmList) Descriptor
deprecated
added in
v0.21.0
func (*IsmList) ProtoMessage ¶ added in v0.21.0
func (*IsmList) ProtoMessage()
func (*IsmList) ProtoReflect ¶ added in v0.21.0
func (x *IsmList) ProtoReflect() protoreflect.Message
type Sayer ¶
type Sayer struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*Sayer) Descriptor
deprecated
func (*Sayer) ProtoMessage ¶
func (*Sayer) ProtoMessage()
func (*Sayer) ProtoReflect ¶
func (x *Sayer) ProtoReflect() protoreflect.Message
type SayerList ¶ added in v0.21.0
type SayerList struct { Data []*Sayer `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SayerList) Descriptor
deprecated
added in
v0.21.0
func (*SayerList) ProtoMessage ¶ added in v0.21.0
func (*SayerList) ProtoMessage()
func (*SayerList) ProtoReflect ¶ added in v0.21.0
func (x *SayerList) ProtoReflect() protoreflect.Message
Source Files ¶
- chat_message.pb.go
- chat_meta.pb.go
- chat_user_action.pb.go
- discord_channel.pb.go
- discord_guild.pb.go
- discord_send_message_request.pb.go
- discord_voice_connection.pb.go
- discord_voice_connection_say_request.pb.go
- error_object.pb.go
- error_payload.pb.go
- errors.go
- fast_pop.go
- ism.pb.go
- logger.go
- marshal.go
- mime_types.go
- request_helpers.go
- sayer.pb.go