client

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 GrpcClient

type GrpcClient struct {
	common.RWMutex
	// contains filtered or unexported fields
}

func NewPdhGrpcClient

func NewPdhGrpcClient(target string) *GrpcClient

func (*GrpcClient) AddHandler

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

AddHandler add a message handler

func (*GrpcClient) RemoveHandler

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

RemoveHandler remove a message handler

func (*GrpcClient) Send

func (p *GrpcClient) Send(msg *proto.Message) error

func (*GrpcClient) Start

func (p *GrpcClient) Start() error

func (*GrpcClient) Stop

func (p *GrpcClient) Stop()

Jump to

Keyboard shortcuts

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