proto

package
v0.0.0-...-11052b5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encoder

func Encoder(m *dynamic.Message) sarama.Encoder

Encoder returns sarama.Encoder for protobuf.

func Unmarshal

func Unmarshal(b []byte, md *desc.MessageDescriptor) (*dynamic.Message, error)

Types

type Proto

type Proto struct {
	ImportPaths []string
	// contains filtered or unexported fields
}

func NewProto

func NewProto(filenames []string, importPaths ...string) (p *Proto, err error)

NewProto creates a new instance of Proto. May return a Proto or open/parse error.

func (*Proto) FindMessage

func (p *Proto) FindMessage(name string) (*desc.MessageDescriptor, error)

FindMessage searches for message with given name.

Jump to

Keyboard shortcuts

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