util

package
v0.0.0-...-b92263b Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GracefulContext

func GracefulContext(ctx context.Context) context.Context

func MarshalProtoMessage

func MarshalProtoMessage(msg proto.Message) ([]byte, error)

func UnmarshalProtoMessage

func UnmarshalProtoMessage(bytes []byte) (proto.Message, error)

Types

type Monitor

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

func NewMonitor

func NewMonitor(ctx context.Context, g *errgroup.Group) *Monitor

func (*Monitor) Connect

func (m *Monitor) Connect()

func (*Monitor) Error

func (m *Monitor) Error(err error)

func (*Monitor) Read

func (m *Monitor) Read()

func (*Monitor) Write

func (m *Monitor) Write()

Jump to

Keyboard shortcuts

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