server

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func New

func New(logger zerolog.Logger, config Config, client *http.Client, ttvAPI *twitchapi.API) *API

func (*API) Launch

func (a *API) Launch(ctx context.Context) error

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseURL string, httpClient *http.Client) *Client

func (*Client) GetChannelChatBadges added in v0.6.2

func (c *Client) GetChannelChatBadges(ctx context.Context, broadcasterID string) ([]twitchapi.BadgeSet, error)

func (*Client) GetChannelEmotes

func (c *Client) GetChannelEmotes(ctx context.Context, broadcaster string) (twitchapi.EmoteResponse, error)

func (*Client) GetChatSettings

func (c *Client) GetChatSettings(ctx context.Context, broadcasterID string, moderatorID string) (twitchapi.GetChatSettingsResponse, error)

func (*Client) GetGlobalChatBadges added in v0.6.2

func (c *Client) GetGlobalChatBadges(ctx context.Context) ([]twitchapi.BadgeSet, error)

func (*Client) GetGlobalEmotes

func (c *Client) GetGlobalEmotes(ctx context.Context) (twitchapi.EmoteResponse, error)

func (*Client) GetStreamInfo

func (c *Client) GetStreamInfo(ctx context.Context, broadcastID []string) (twitchapi.GetStreamsResponse, error)

func (*Client) GetUsers

func (c *Client) GetUsers(ctx context.Context, logins []string, ids []string) (twitchapi.UserResponse, error)

func (*Client) RefreshToken

func (c *Client) RefreshToken(ctx context.Context, refreshToken string) (string, string, error)

func (*Client) RevokeToken added in v0.3.0

func (c *Client) RevokeToken(ctx context.Context, token string) error

type Config

type Config struct {
	ClientID     string
	ClientSecret string
	HostAndPort  string
	RedirectURL  string
}

Jump to

Keyboard shortcuts

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