Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlineGrpcServer added in v1.0.3

type AlineGrpcServer struct {
	api.UnimplementedAlineRPCServer
	RecvMsgChan chan *api.AlineMessage
	SendMsgChan chan *api.AlineMessage

	ErrorChan chan error // 用来接收 grpc server 发送消息的错误
	// contains filtered or unexported fields
}

func GrpcServerStart added in v1.0.3

func GrpcServerStart(listenAddress string) (*AlineGrpcServer, error)

func (*AlineGrpcServer) AlineChat added in v1.0.3

func (s *AlineGrpcServer) AlineChat(stream api.AlineRPC_AlineChatServer) error

AlineChat 每当有新的连接建立时,都会调用这个函数,不同的连接会有不同的 stream

Jump to

Keyboard shortcuts

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