logic

package
v0.0.0-...-39337ee Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsumeMsgFromMQ

func ConsumeMsgFromMQ(svc *svc.ServiceContext)

从MQ中取出消息

func ServeWs

func ServeWs(svc *svc.ServiceContext, w http.ResponseWriter, r *http.Request) error

处理客户端连接

Types

type Client

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

客户端在服务端的代表

type Group

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

群组

func GetInstanceGroup

func GetInstanceGroup(groupId string) *Group

func (*Group) Run

func (g *Group) Run()

type PullLogic

type PullLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewPullLogic

func NewPullLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PullLogic

func (*PullLogic) Pull

func (l *PullLogic) Pull(req *types.PullRequest) (*types.PullResponse, error)

type UploadLogic

type UploadLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUploadLogic

func NewUploadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UploadLogic

func (*UploadLogic) Upload

Jump to

Keyboard shortcuts

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