protos

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintProtos

func PrintProtos(_ context.Context, ps <-chan ID, errs chan<- error) (*sync.WaitGroup, error)

PrintProtos prints passed protos as JSON to the stdout. Returns a WaitGroup which finishes after all protos have been printed, or if an error is encountered.

func Read

func Read(file string, out proto.Message) error

func Write

func Write(path string, p proto.Message) error

Types

type ID

type ID interface {
	proto.Message
	ID() uint32
}

type Sink

type Sink func(context.Context, <-chan ID, chan<- error) (*sync.WaitGroup, error)

Jump to

Keyboard shortcuts

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