transmit

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientStreamWrapper

type ClientStreamWrapper struct {
	Stream proto.PdhService_TransmitClient
}

func (*ClientStreamWrapper) Send

func (c *ClientStreamWrapper) Send(msg *proto.Message) error

type GrpcStream

type GrpcStream interface {
	Send(msg *proto.Message) error
}

type MessageHandler

type MessageHandler interface {
	HandleMessage(stream GrpcStream, msg *proto.Message)
}

type ServerStreamWrapper

type ServerStreamWrapper struct {
	Stream proto.PdhService_TransmitServer

	Ch        chan *proto.Message
	WriteToCh atomic.Bool
	// contains filtered or unexported fields
}

func (*ServerStreamWrapper) Send

func (s *ServerStreamWrapper) Send(msg *proto.Message) error

func (*ServerStreamWrapper) StartWriteToChannel

func (s *ServerStreamWrapper) StartWriteToChannel()

func (*ServerStreamWrapper) StopWriteToChannel

func (s *ServerStreamWrapper) StopWriteToChannel()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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