messages

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TransitMessageIdCodec = &omega.TransitMessageIDCodec{}

Functions

This section is empty.

Types

type Broadcast

type Broadcast struct {
	TransitFrame
}

func (*Broadcast) GetMessage

func (c *Broadcast) GetMessage() string

type CastTransitFrame

type CastTransitFrame interface {
	Broadcast() *Broadcast
	Hello() *Hello
	ServerTime() *ServerTime
	JoinChannel() *JoinChannel
	GetChannelMeta() *GetChannelMeta
	SetChannelMeta() *SetChannelMeta
	ChannelMessage() *ChannelMessage
	ChannelOwnerMessage() *ChannelOwnerMessage
	ChannelCount() *ChannelCount
	LeaveChannel() *LeaveChannel
	CloseChannel() *CloseChannel
	JoinVote() *JoinVote
	GetVoteMeta() *GetVoteMeta
	SetVoteMeta() *SetVoteMeta
	VoteMessage() *VoteMessage
	VoteOwnerMessage() *VoteOwnerMessage
	VoteCount() *VoteCount
	VoteSelect() *VoteSelect
	VoteStatus() *VoteStatus
	LeaveVote() *LeaveVote
	CloseVote() *CloseVote
	GetSessionMeta() *GetSessionMeta
	SetSessionMeta() *SetSessionMeta
	SessionMessage() *SessionMessage
}

type ChannelCount

type ChannelCount struct {
	TransitFrame
}

func (*ChannelCount) GetChannelId

func (c *ChannelCount) GetChannelId() string

func (*ChannelCount) GetCount

func (c *ChannelCount) GetCount() int32

func (*ChannelCount) GetOwnerCount

func (c *ChannelCount) GetOwnerCount() int32

func (*ChannelCount) GetParticipatorCount

func (c *ChannelCount) GetParticipatorCount() int32

type ChannelMessage

type ChannelMessage struct {
	TransitFrame
}

func (*ChannelMessage) GetChannelId

func (c *ChannelMessage) GetChannelId() string

func (*ChannelMessage) GetFromSession

func (c *ChannelMessage) GetFromSession() string

func (*ChannelMessage) GetMessage

func (c *ChannelMessage) GetMessage() string

func (*ChannelMessage) GetMetadata

func (c *ChannelMessage) GetMetadata() map[string]any

func (*ChannelMessage) GetOffset

func (c *ChannelMessage) GetOffset() int64

func (*ChannelMessage) GetRoleIndicator

func (c *ChannelMessage) GetRoleIndicator() omega.Role

func (*ChannelMessage) GetSkill

func (c *ChannelMessage) GetSkill() *omega.Skill

func (*ChannelMessage) GetSubject

func (c *ChannelMessage) GetSubject() string

func (*ChannelMessage) GetSubjectName

func (c *ChannelMessage) GetSubjectName() string

type ChannelOwnerMessage

type ChannelOwnerMessage struct {
	TransitFrame
}

func (*ChannelOwnerMessage) GetChannelId

func (c *ChannelOwnerMessage) GetChannelId() string

func (*ChannelOwnerMessage) GetFromSession

func (c *ChannelOwnerMessage) GetFromSession() string

func (*ChannelOwnerMessage) GetMessage

func (c *ChannelOwnerMessage) GetMessage() string

func (*ChannelOwnerMessage) GetMetadata

func (c *ChannelOwnerMessage) GetMetadata() map[string]any

func (*ChannelOwnerMessage) GetOffset

func (c *ChannelOwnerMessage) GetOffset() int64

func (*ChannelOwnerMessage) GetSkill

func (c *ChannelOwnerMessage) GetSkill() *omega.Skill

func (*ChannelOwnerMessage) GetSubject

func (c *ChannelOwnerMessage) GetSubject() string

func (*ChannelOwnerMessage) GetSubjectName

func (c *ChannelOwnerMessage) GetSubjectName() string

type CloseChannel

type CloseChannel struct {
	TransitFrame
}

func (*CloseChannel) GetChannelId

func (c *CloseChannel) GetChannelId() string

func (*CloseChannel) GetOffset

func (c *CloseChannel) GetOffset() int64

type CloseVote

type CloseVote struct {
	TransitFrame
}

func (*CloseVote) GetVoteId

func (c *CloseVote) GetVoteId() string

type GetChannelMeta

type GetChannelMeta struct {
	TransitFrame
}

func (*GetChannelMeta) GetChannelId

func (c *GetChannelMeta) GetChannelId() string

func (*GetChannelMeta) GetCreatedAt

func (c *GetChannelMeta) GetCreatedAt() int64

func (*GetChannelMeta) GetData

func (c *GetChannelMeta) GetData() map[string]any

func (*GetChannelMeta) GetName

func (c *GetChannelMeta) GetName() string

func (*GetChannelMeta) GetOffset

func (c *GetChannelMeta) GetOffset() int64

func (*GetChannelMeta) GetSkill

func (c *GetChannelMeta) GetSkill() *omega.Skill

type GetSessionMeta

type GetSessionMeta struct {
	TransitFrame
}

func (*GetSessionMeta) GetData

func (c *GetSessionMeta) GetData() map[string]any

func (*GetSessionMeta) GetName

func (c *GetSessionMeta) GetName() string

func (*GetSessionMeta) GetSessionId

func (c *GetSessionMeta) GetSessionId() string

func (*GetSessionMeta) GetSubject

func (c *GetSessionMeta) GetSubject() string

type GetVoteMeta

type GetVoteMeta struct {
	TransitFrame
}

func (*GetVoteMeta) GetCreatedAt

func (x *GetVoteMeta) GetCreatedAt() int64

func (*GetVoteMeta) GetData

func (x *GetVoteMeta) GetData() map[string]any

func (*GetVoteMeta) GetName

func (x *GetVoteMeta) GetName() string

func (*GetVoteMeta) GetVoteId

func (x *GetVoteMeta) GetVoteId() string

func (*GetVoteMeta) GetVoteOptions

func (x *GetVoteMeta) GetVoteOptions() []*omega.Vote_Option

type Hello

type Hello struct {
	TransitFrame
}

func (*Hello) GetSessionId

func (c *Hello) GetSessionId() string

func (*Hello) GetSubject

func (c *Hello) GetSubject() string

func (*Hello) GetSubjectName

func (c *Hello) GetSubjectName() string

type JoinChannel

type JoinChannel struct {
	TransitFrame
}

func (*JoinChannel) GetName

func (c *JoinChannel) GetName() string

func (*JoinChannel) GetRole

func (c *JoinChannel) GetRole() string

func (*JoinChannel) GetRoleIndicator

func (c *JoinChannel) GetRoleIndicator() omega.Role

func (*JoinChannel) GetSessionId

func (c *JoinChannel) GetSessionId() string

func (*JoinChannel) GetSessionMetadata

func (c *JoinChannel) GetSessionMetadata() map[string]any

func (*JoinChannel) GetSkill

func (c *JoinChannel) GetSkill() *omega.Skill

func (*JoinChannel) GetSubject

func (c *JoinChannel) GetSubject() string

func (*JoinChannel) GetSubjectName

func (c *JoinChannel) GetSubjectName() string

type JoinVote

type JoinVote struct {
	TransitFrame
}

func (*JoinVote) GetCreatedAt

func (x *JoinVote) GetCreatedAt() int64

func (*JoinVote) GetKey

func (x *JoinVote) GetKey() string

func (*JoinVote) GetName

func (x *JoinVote) GetName() string

func (*JoinVote) GetSessionId

func (x *JoinVote) GetSessionId() string

func (*JoinVote) GetSessionMetadata

func (x *JoinVote) GetSessionMetadata() map[string]any

func (*JoinVote) GetVoteId

func (x *JoinVote) GetVoteId() string

func (*JoinVote) GetVoteMetadata

func (x *JoinVote) GetVoteMetadata() map[string]any

func (*JoinVote) GetVoteOptions

func (x *JoinVote) GetVoteOptions() []*omega.Vote_Option

type LeaveChannel

type LeaveChannel struct {
	TransitFrame
}

func (*LeaveChannel) GetChannelId

func (c *LeaveChannel) GetChannelId() string

func (*LeaveChannel) GetOffset

func (c *LeaveChannel) GetOffset() int64

func (*LeaveChannel) GetSessionId

func (c *LeaveChannel) GetSessionId() string

type LeaveVote

type LeaveVote struct {
	TransitFrame
}

func (*LeaveVote) GetSessionId

func (c *LeaveVote) GetSessionId() string

func (*LeaveVote) GetVoteId

func (c *LeaveVote) GetVoteId() string

type ServerTime

type ServerTime struct {
	TransitFrame
}

func (*ServerTime) GetUnixNano

func (c *ServerTime) GetUnixNano() int64

func (*ServerTime) GetUnixTimestamp

func (c *ServerTime) GetUnixTimestamp() int64

type SessionMessage

type SessionMessage struct {
	TransitFrame
}

func (*SessionMessage) GetFromSession

func (c *SessionMessage) GetFromSession() string

func (*SessionMessage) GetMessage

func (c *SessionMessage) GetMessage() string

func (*SessionMessage) GetSequential

func (c *SessionMessage) GetSequential() bool

func (*SessionMessage) GetToSession

func (c *SessionMessage) GetToSession() string

type SetChannelMeta

type SetChannelMeta struct {
	TransitFrame
}

func (*SetChannelMeta) GetChannelId

func (c *SetChannelMeta) GetChannelId() string

func (*SetChannelMeta) GetData

func (c *SetChannelMeta) GetData() map[string]any

func (*SetChannelMeta) GetName

func (c *SetChannelMeta) GetName() string

func (*SetChannelMeta) GetOffset

func (c *SetChannelMeta) GetOffset() int64

func (*SetChannelMeta) GetSkill

func (c *SetChannelMeta) GetSkill() *omega.Skill

type SetSessionMeta

type SetSessionMeta struct {
	TransitFrame
}

func (*SetSessionMeta) GetData

func (c *SetSessionMeta) GetData() map[string]any

func (*SetSessionMeta) GetName

func (c *SetSessionMeta) GetName() string

func (*SetSessionMeta) GetSessionId

func (c *SetSessionMeta) GetSessionId() string

type SetVoteMeta

type SetVoteMeta struct {
	TransitFrame
}

func (*SetVoteMeta) GetData

func (x *SetVoteMeta) GetData() map[string]any

func (*SetVoteMeta) GetName

func (x *SetVoteMeta) GetName() string

func (*SetVoteMeta) GetVoteId

func (x *SetVoteMeta) GetVoteId() string

type TransitFrame

type TransitFrame interface {
	GetTransitId() uint64
	GetClass() omega.TransitFrame_FrameClass
	GetVersion() omega.TransitFrame_Version
	GetTimestamp() int64
	GetErr() *omega.Error
	GetMessageId() string
	GetRefererMessageId() string
	BaseTransitFrame() *omega.TransitFrame
	ProtoMessage() *omega.TransitFrame
	TypeName() string
	Cast() CastTransitFrame
}

func WrapTransitFrame

func WrapTransitFrame(btf *omega.TransitFrame) (msg TransitFrame)

type VoteCount

type VoteCount struct {
	TransitFrame
}

func (*VoteCount) GetVoteId

func (x *VoteCount) GetVoteId() string

func (*VoteCount) GetVoteOptions

func (x *VoteCount) GetVoteOptions() []*omega.Vote_Option

type VoteMessage

type VoteMessage struct {
	TransitFrame
}

func (*VoteMessage) GetFromSession

func (x *VoteMessage) GetFromSession() string

func (*VoteMessage) GetMessage

func (x *VoteMessage) GetMessage() string

func (*VoteMessage) GetRoleIndicator

func (x *VoteMessage) GetRoleIndicator() omega.Role

func (*VoteMessage) GetSequential

func (x *VoteMessage) GetSequential() bool

func (*VoteMessage) GetSubject

func (x *VoteMessage) GetSubject() string

func (*VoteMessage) GetVoteId

func (x *VoteMessage) GetVoteId() string

type VoteOwnerMessage

type VoteOwnerMessage struct {
	TransitFrame
}

func (*VoteOwnerMessage) GetMessage

func (x *VoteOwnerMessage) GetMessage() string

func (*VoteOwnerMessage) GetSequential

func (x *VoteOwnerMessage) GetSequential() bool

func (*VoteOwnerMessage) GetVoteId

func (x *VoteOwnerMessage) GetVoteId() string

type VoteSelect

type VoteSelect struct {
	TransitFrame
}

func (*VoteSelect) GetDeny

func (x *VoteSelect) GetDeny() bool

func (*VoteSelect) GetSessionId

func (x *VoteSelect) GetSessionId() string

func (*VoteSelect) GetSubject

func (x *VoteSelect) GetSubject() string

func (*VoteSelect) GetVoteId

func (x *VoteSelect) GetVoteId() string

func (*VoteSelect) GetVoteOptionId

func (x *VoteSelect) GetVoteOptionId() string

type VoteStatus

type VoteStatus struct {
	TransitFrame
}

func (*VoteStatus) GetStatus

func (x *VoteStatus) GetStatus() omega.Vote_Status

func (*VoteStatus) GetVoteId

func (x *VoteStatus) GetVoteId() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL