v1

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DanmakuService

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

DanmakuService struct

func NewDanmakuService

func NewDanmakuService(p *server.BroadcastProxy, d *server.CometDispatcher) (s *DanmakuService)

NewDanmakuService init

func (*DanmakuService) BatchRoomMessage

func (s *DanmakuService) BatchRoomMessage(ctx context.Context, req *v1pb.BatchRoomMessageRequest) (resp *v1pb.GeneralResponse, err error)

BatchRoomMessage implementation

func (*DanmakuService) BatchUserMessage

func (s *DanmakuService) BatchUserMessage(ctx context.Context, req *v1pb.BatchUserMessageRequest) (resp *v1pb.GeneralResponse, err error)

BatchUserMessage implementation

func (*DanmakuService) BroadcastMessage

func (s *DanmakuService) BroadcastMessage(ctx context.Context, req *v1pb.BroadcastMessageRequest) (resp *v1pb.GeneralResponse, err error)

BroadcastMessage implementation

func (*DanmakuService) Dispatch

func (s *DanmakuService) Dispatch(ctx context.Context, req *v1pb.DispatchRequest) (resp *v1pb.DispatchResponse, err error)

Dispatch implementation

func (*DanmakuService) GetRoomOnlineCount

func (s *DanmakuService) GetRoomOnlineCount(ctx context.Context, req *v1pb.GetRoomOnlineCountRequest) (resp *v1pb.GetRoomOnlineCountResponse, err error)

func (*DanmakuService) MultiRoomMessage

func (s *DanmakuService) MultiRoomMessage(ctx context.Context, req *v1pb.MultiRoomMessageRequest) (resp *v1pb.GeneralResponse, err error)

MultiRoomMessage implementation

func (*DanmakuService) RoomMessage

func (s *DanmakuService) RoomMessage(ctx context.Context, req *v1pb.RoomMessageRequest) (resp *v1pb.GeneralResponse, err error)

RoomMessage implementation

func (*DanmakuService) SetAngryValue

func (s *DanmakuService) SetAngryValue(ctx context.Context, req *v1pb.SetAngryValueRequest) (resp *v1pb.SetAngryValueResponse, err error)

func (*DanmakuService) UserMessage

func (s *DanmakuService) UserMessage(ctx context.Context, req *v1pb.UserMessageRequest) (resp *v1pb.GeneralResponse, err error)

UserMessage implementation

Jump to

Keyboard shortcuts

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