handler

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	pb.UnimplementedYlccServer
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(processor *processor.Processor, collector *collector.Collector, opts ...Option) *Handler

func (*Handler) CloseVote

func (h *Handler) CloseVote(ctx context.Context, request *pb.CloseVoteRequest) (*pb.CloseVoteResponse, error)

func (*Handler) GetArchiveLiveChat

func (h *Handler) GetArchiveLiveChat(ctx context.Context, request *pb.GetArchiveLiveChatRequest) (*pb.GetArchiveLiveChatResponse, error)

func (*Handler) GetCachedActiveLiveChat

func (h *Handler) GetCachedActiveLiveChat(ctx context.Context, request *pb.GetCachedActiveLiveChatRequest) (*pb.GetCachedActiveLiveChatResponse, error)

func (*Handler) GetVideo

func (h *Handler) GetVideo(ctx context.Context, request *pb.GetVideoRequest) (*pb.GetVideoResponse, error)

func (*Handler) GetVoteResult

func (h *Handler) GetVoteResult(ctx context.Context, request *pb.GetVoteResultRequest) (*pb.GetVoteResultResponse, error)

func (*Handler) GetWordCloud

func (h *Handler) GetWordCloud(ctx context.Context, request *pb.GetWordCloudRequest) (*pb.GetWordCloudResponse, error)

func (*Handler) OpenVote

func (h *Handler) OpenVote(ctx context.Context, request *pb.OpenVoteRequest) (*pb.OpenVoteResponse, error)

func (*Handler) PollActiveLiveChat

func (h *Handler) PollActiveLiveChat(request *pb.PollActiveLiveChatRequest, server pb.Ylcc_PollActiveLiveChatServer) error

func (*Handler) PollGroupingActiveLiveChat

func (h *Handler) PollGroupingActiveLiveChat(request *pb.PollGroupingActiveLiveChatRequest, server pb.Ylcc_PollGroupingActiveLiveChatServer) error

func (*Handler) Register

func (h *Handler) Register(grpcServer *grpc.Server)

func (*Handler) Start

func (h *Handler) Start() error

func (*Handler) Stop

func (h *Handler) Stop()

func (*Handler) UpdateVoteDuration

func (h *Handler) UpdateVoteDuration(ctx context.Context, request *pb.UpdateVoteDurationRequest) (*pb.UpdateVoteDurationResponse, error)

type Option

type Option func(*options)

func Verbose

func Verbose(verbose bool) Option

Jump to

Keyboard shortcuts

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