helix

package
v0.0.0-...-a9e5fbf Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultClientID = "lc4tcxdkp0hkg87merghpp1f52alaj"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HelixClient

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

func (*HelixClient) GetStreams

func (client *HelixClient) GetStreams(ids []string, usernames []string) ([]helix_api.Stream, error)

ids are numeric IDs.

func (*HelixClient) GetUsers

func (client *HelixClient) GetUsers(ids []string, usernames []string) ([]helix_api.User, error)

ids are numeric IDs.

func (*HelixClient) GetUsersFollows

func (client *HelixClient) GetUsersFollows(fromID string, toID string) ([]helix_api.UserFollow, error)

Here, fromID and toID are numeric IDs.

type HelixClientT

type HelixClientT interface {
	GetUsers(ids []string, usernames []string) ([]helix_api.User, error)
	GetUsersFollows(fromID string, toID string) ([]helix_api.UserFollow, error)
	GetStreams(ids []string, usernames []string) ([]helix_api.Stream, error)
}

func DefaultHelixClient

func DefaultHelixClient() HelixClientT

func NewHelixClient

func NewHelixClient(clientID string) HelixClientT

type InnerClientT

type InnerClientT interface {
	GetUsers(params *helix_api.UsersParams) (*helix_api.UsersResponse, error)
	GetUsersFollows(params *helix_api.UsersFollowsParams) (*helix_api.UsersFollowsResponse, error)
	GetStreams(params *helix_api.StreamsParams) (*helix_api.StreamsResponse, error)
}

InnerClientT Interface for inner API client.

Directories

Path Synopsis
Package mock_helix is a generated GoMock package.
Package mock_helix is a generated GoMock package.

Jump to

Keyboard shortcuts

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