Documentation ¶
Index ¶
- type YlccClient
- func (y *YlccClient) BuildGroupingChoice(label string, choice string) *pb.GroupingChoice
- func (y *YlccClient) BuildRGBAColor(r uint32, g uint32, b uint32, a uint32) *pb.Color
- func (y *YlccClient) BuildRGBColor(r uint32, g uint32, b uint32) *pb.Color
- func (y *YlccClient) BuildVoteChoice(label string, choice string) *pb.VoteChoice
- func (y *YlccClient) Close()
- func (y *YlccClient) CloseVote(ctx context.Context, voteId string) (*pb.CloseVoteResponse, error)
- func (y *YlccClient) Dial() error
- func (y *YlccClient) GetArchiveLiveChat(ctx context.Context, videoId string, offset int64, count int64) (*pb.GetArchiveLiveChatResponse, error)
- func (y *YlccClient) GetCachedActiveLiveChat(ctx context.Context, videoId string, offset int64, count int64) (*pb.GetCachedActiveLiveChatResponse, error)
- func (y *YlccClient) GetVideo(ctx context.Context, videoId string) (*pb.GetVideoResponse, error)
- func (y *YlccClient) GetVoteResult(ctx context.Context, voteId string) (*pb.GetVoteResultResponse, error)
- func (y *YlccClient) GetWordCloud(ctx context.Context, videoId string, target pb.Target, messageLimit int32, ...) (*pb.GetWordCloudResponse, error)
- func (y *YlccClient) OpenVote(ctx context.Context, videoId string, target pb.Target, duration int32, ...) (*pb.OpenVoteResponse, error)
- func (y *YlccClient) PollActiveLiveChat(ctx context.Context, videoId string, ...) error
- func (y *YlccClient) PollGroupingActiveLiveChat(ctx context.Context, groupingId string, ...) error
- func (y *YlccClient) StartCollectionActiveLiveChat(ctx context.Context, videoId string) (*pb.StartCollectionActiveLiveChatResponse, error)
- func (y *YlccClient) StartCollectionArchiveLiveChat(ctx context.Context, videoId string) (*pb.StartCollectionArchiveLiveChatResponse, error)
- func (y *YlccClient) StartCollectionWordCloudMessages(ctx context.Context, videoId string) (*pb.StartCollectionWordCloudMessagesResponse, error)
- func (y *YlccClient) StartGroupingActiveLiveChat(ctx context.Context, videoId string, target pb.Target, ...) (*pb.StartGroupingActiveLiveChatResponse, error)
- func (y *YlccClient) UpdateVoteDuration(ctx context.Context, voteId string, duration int32) (*pb.UpdateVoteDurationResponse, error)
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 (*YlccClient) BuildRGBColor ¶
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 (*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)
Click to show internal directories.
Click to hide internal directories.