service

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

func InitTitan

func InitTitan()

InitTitan 初始化kv配置

Types

type Service

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

Service service.

func New

func New() (s *Service)

New new a service and return.

func (*Service) Close

func (s *Service) Close()

Close close the resource.

func (*Service) GetConf

func (s *Service) GetConf(ctx context.Context, req *dmv1pb.GetConfReq) (resp *dmv1pb.GetConfResp, err error)

GetConf 获取弹幕配置

func (*Service) Ping

func (s *Service) Ping(ctx context.Context) (err error)

Ping ping the resource.

func (*Service) Sendmsg

func (s *Service) Sendmsg(ctx context.Context, req *dmv1pb.SendMsgReq) (resp *dmv1pb.SendMsgResp, err error)

Sendmsg 发送弹幕消息

Jump to

Keyboard shortcuts

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