client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YlccClient

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

func NewYlccClient

func NewYlccClient(addrPort string, options ...grpc.DialOption) *YlccClient

func (*YlccClient) BuildGroupingChoice

func (y *YlccClient) BuildGroupingChoice(label string, choice string) *pb.GroupingChoice

func (*YlccClient) BuildRGBAColor

func (y *YlccClient) BuildRGBAColor(r uint32, g uint32, b uint32, a uint32) *pb.Color

func (*YlccClient) BuildRGBColor

func (y *YlccClient) BuildRGBColor(r uint32, g uint32, b uint32) *pb.Color

func (*YlccClient) BuildVoteChoice

func (y *YlccClient) BuildVoteChoice(label string, choice string) *pb.VoteChoice

func (*YlccClient) Close

func (y *YlccClient) Close()

func (*YlccClient) CloseVote

func (y *YlccClient) CloseVote(ctx context.Context, voteId string) (*pb.CloseVoteResponse, error)

func (*YlccClient) Dial

func (y *YlccClient) Dial() error

func (*YlccClient) GetArchiveLiveChat

func (y *YlccClient) GetArchiveLiveChat(ctx context.Context, videoId string, offset int64, count int64) (*pb.GetArchiveLiveChatResponse, error)

func (*YlccClient) GetCachedActiveLiveChat

func (y *YlccClient) GetCachedActiveLiveChat(ctx context.Context, videoId string, offset int64, count int64) (*pb.GetCachedActiveLiveChatResponse, error)

func (*YlccClient) GetVideo

func (y *YlccClient) GetVideo(ctx context.Context, videoId string) (*pb.GetVideoResponse, error)

func (*YlccClient) GetVoteResult

func (y *YlccClient) GetVoteResult(ctx context.Context, voteId string) (*pb.GetVoteResultResponse, error)

func (*YlccClient) GetWordCloud

func (y *YlccClient) GetWordCloud(
	ctx context.Context,
	videoId string,
	target pb.Target,
	messageLimit int32,
	fontMaxSize int32,
	fontMinSize int32,
	width int32,
	height int32,
	colors []*pb.Color,
	backgroundColor *pb.Color) (*pb.GetWordCloudResponse, error)

func (*YlccClient) OpenVote

func (y *YlccClient) OpenVote(ctx context.Context, videoId string, target pb.Target, duration int32, choices []*pb.VoteChoice) (*pb.OpenVoteResponse, error)

func (*YlccClient) PollActiveLiveChat

func (y *YlccClient) PollActiveLiveChat(ctx context.Context, videoId string, cbFunc func(*pb.PollActiveLiveChatResponse) bool) error

func (*YlccClient) PollGroupingActiveLiveChat

func (y *YlccClient) PollGroupingActiveLiveChat(ctx context.Context, groupingId string, cbFunc func(*pb.PollGroupingActiveLiveChatResponse) bool) error

func (*YlccClient) StartCollectionActiveLiveChat

func (y *YlccClient) StartCollectionActiveLiveChat(ctx context.Context, videoId string) (*pb.StartCollectionActiveLiveChatResponse, error)

func (*YlccClient) StartCollectionArchiveLiveChat

func (y *YlccClient) StartCollectionArchiveLiveChat(ctx context.Context, videoId string) (*pb.StartCollectionArchiveLiveChatResponse, error)

func (*YlccClient) StartCollectionWordCloudMessages

func (y *YlccClient) StartCollectionWordCloudMessages(ctx context.Context, videoId string) (*pb.StartCollectionWordCloudMessagesResponse, error)

func (*YlccClient) StartGroupingActiveLiveChat

func (y *YlccClient) StartGroupingActiveLiveChat(ctx context.Context, videoId string, target pb.Target, choices []*pb.GroupingChoice) (*pb.StartGroupingActiveLiveChatResponse, error)

func (*YlccClient) UpdateVoteDuration

func (y *YlccClient) UpdateVoteDuration(ctx context.Context, voteId string, duration int32) (*pb.UpdateVoteDurationResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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