Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { State ChannelState LastEvent time.Time Raw *pb.Channel }
func (*Channel) Update ¶
func (c *Channel) Update(state ...ChannelState) *Channel
type ChannelState ¶
type ChannelState string
const ( ChannelStateWaitingLimits ChannelState = "WAITING_LIMITS" ChannelStateJoinRequested ChannelState = "JOIN_REQUESTED" ChannelStateJoined ChannelState = "JOINED" ChannelStateParted ChannelState = "PARTED" ChannelStateSuspended ChannelState = "SUSPENDED" ChannelStateBanned ChannelState = "BANNED" ChannelStateUnknown ChannelState = "UNKNOWN" )
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) ConnLength ¶
func (c *Connection) ConnLength() int
func (*Connection) JoinChannel ¶
func (c *Connection) JoinChannel(channel *pb.Channel)
func (*Connection) PartChannel ¶
func (c *Connection) PartChannel(channel string)
type ConnectionOptions ¶
type EventPublish ¶
type EventPublish func(context.Context, *pb.PublishSlaveChannelEventRequest) error
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func New ¶
func New(gCtx global.Context, rl RateLimiter, ep EventPublish) *Manager
func (*Manager) SetLoginCreds ¶
func (m *Manager) SetLoginCreds(options ConnectionOptions)
Click to show internal directories.
Click to hide internal directories.