Documentation ¶
Index ¶
- Variables
- type ClientConfig
- type Service
- func (s Service) GetBotTwitchClient(cfg ClientConfig) (*twitch.Client, error)
- func (s Service) GetBotUsername() (string, error)
- func (s Service) GetChannelPermissions(channel string) ([]string, error)
- func (s Service) GetTwitchClientForChannel(channel string, cfg ClientConfig) (*twitch.Client, error)
- func (s Service) HasAnyPermissionForChannel(channel string, scopes ...string) (bool, error)
- func (s Service) HasPermissionsForChannel(channel string, scopes ...string) (bool, error)
- func (s Service) ListPermittedChannels() ([]string, error)
- func (s Service) RemoveAllExtendedTwitchCredentials() error
- func (s Service) RemoveExendedTwitchCredentials(channel string) error
- func (s Service) SetBotUsername(channel string) (err error)
- func (s Service) SetExtendedTwitchCredentials(channel, accessToken, refreshToken string, scope []string) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrChannelNotAuthorized = errors.New("channel is not authorized")
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (Service) GetBotTwitchClient ¶
func (s Service) GetBotTwitchClient(cfg ClientConfig) (*twitch.Client, error)
func (Service) GetBotUsername ¶ added in v3.5.0
func (Service) GetChannelPermissions ¶ added in v3.2.0
func (Service) GetTwitchClientForChannel ¶
func (Service) HasAnyPermissionForChannel ¶
func (Service) HasPermissionsForChannel ¶
func (Service) ListPermittedChannels ¶ added in v3.5.1
func (Service) RemoveAllExtendedTwitchCredentials ¶ added in v3.7.0
func (Service) RemoveExendedTwitchCredentials ¶
func (Service) SetBotUsername ¶ added in v3.5.0
Click to show internal directories.
Click to hide internal directories.