Documentation ¶
Index ¶
- Constants
- func CtxWithCache(ctx context.Context, cache *Cache) context.Context
- func InitConfig(cfg streamctl.Config)
- type Cache
- type ChatClient
- type ChatHandler
- type Client
- type Config
- type Kick
- func (k *Kick) ApplyProfile(ctx context.Context, profile StreamProfile, customArgs ...any) error
- func (k *Kick) BanUser(ctx context.Context, userID streamcontrol.ChatUserID, reason string, ...) error
- func (k *Kick) Close() error
- func (k *Kick) EndStream(ctx context.Context) error
- func (k *Kick) Flush(ctx context.Context) error
- func (k *Kick) GetChatMessagesChan(ctx context.Context) (<-chan streamcontrol.ChatMessage, error)
- func (k *Kick) GetStreamStatus(ctx context.Context) (*streamcontrol.StreamStatus, error)
- func (k *Kick) InsertAdsCuePoint(ctx context.Context, ts time.Time, duration time.Duration) error
- func (k *Kick) IsCapable(ctx context.Context, cap streamcontrol.Capability) bool
- func (k *Kick) RemoveChatMessage(ctx context.Context, messageID streamcontrol.ChatMessageID) error
- func (k *Kick) SendChatMessage(ctx context.Context, message string) error
- func (k *Kick) SetDescription(ctx context.Context, description string) error
- func (k *Kick) SetTitle(ctx context.Context, title string) error
- func (k *Kick) StartStream(ctx context.Context, title string, description string, profile StreamProfile, ...) error
- type LivestreamInfoClient
- type OAuthHandler
- type PlatformSpecificConfig
- type StreamProfile
Constants ¶
View Source
const ID = kick.ID
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
Types ¶
type ChatClient ¶
type ChatHandler ¶
type ChatHandler struct {
// contains filtered or unexported fields
}
func NewChatHandler ¶
func (*ChatHandler) MessagesChan ¶
func (h *ChatHandler) MessagesChan() <-chan streamcontrol.ChatMessage
type Client ¶
type Client interface { ChatClient LivestreamInfoClient }
type Kick ¶
type Kick struct { CloseCtx context.Context CloseFn context.CancelFunc Channel *kickcom.ChannelV1 Client Client ChatHandler *ChatHandler SaveCfgFn func(Config) error }
func (*Kick) ApplyProfile ¶
func (*Kick) BanUser ¶
func (k *Kick) BanUser( ctx context.Context, userID streamcontrol.ChatUserID, reason string, deadline time.Time, ) error
func (*Kick) GetChatMessagesChan ¶
func (k *Kick) GetChatMessagesChan( ctx context.Context, ) (<-chan streamcontrol.ChatMessage, error)
func (*Kick) GetStreamStatus ¶
func (k *Kick) GetStreamStatus(ctx context.Context) (*streamcontrol.StreamStatus, error)
func (*Kick) InsertAdsCuePoint ¶
func (*Kick) IsCapable ¶
func (k *Kick) IsCapable( ctx context.Context, cap streamcontrol.Capability, ) bool
func (*Kick) RemoveChatMessage ¶
func (k *Kick) RemoveChatMessage(ctx context.Context, messageID streamcontrol.ChatMessageID) error
func (*Kick) SendChatMessage ¶
func (*Kick) SetDescription ¶
func (*Kick) StartStream ¶
type LivestreamInfoClient ¶
type OAuthHandler ¶
type OAuthHandler = kick.OAuthHandler
type PlatformSpecificConfig ¶
type PlatformSpecificConfig = kick.PlatformSpecificConfig
type StreamProfile ¶
type StreamProfile = kick.StreamProfile
Click to show internal directories.
Click to hide internal directories.