server

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcServer

type GrpcServer struct {
	common.RWMutex
	proto.UnimplementedPdhServiceServer
	// contains filtered or unexported fields
}

func NewPdhGrpcServer

func NewPdhGrpcServer(opt *options.GrpcServerOptions) *GrpcServer

func (*GrpcServer) AddHandler

func (p *GrpcServer) AddHandler(handler transmit.MessageHandler)

AddHandler add a message handler

func (*GrpcServer) RemoveHandler

func (p *GrpcServer) RemoveHandler(handler transmit.MessageHandler)

RemoveHandler remove a message handler

func (*GrpcServer) Send

func (p *GrpcServer) Send(stream proto.PdhService_TransmitServer, message *proto.Message) error

func (*GrpcServer) Start

func (p *GrpcServer) Start() error

func (*GrpcServer) Stop

func (p *GrpcServer) Stop()

func (*GrpcServer) Transmit

func (p *GrpcServer) Transmit(stream proto.PdhService_TransmitServer) error

Jump to

Keyboard shortcuts

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