bufconvert

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MessageEncodingFormatsString is the string representation of all message encoding formats.
	//
	// This does not include deprecated formats.
	MessageEncodingFormatsString = stringutil.SliceToString(messageEncodingFormats)
)

Functions

This section is empty.

Types

type MessageEncoding

type MessageEncoding int

MessageEncoding is the encoding of the message

const (
	// MessageEncodingBinpb is the binary image encoding.
	MessageEncodingBinpb MessageEncoding = iota + 1
	// MessageEncodingJSON is the JSON image encoding.
	MessageEncodingJSON
	// MessageEncodingTxtpb is the protobuf text image encoding.
	MessageEncodingTxtpb
)

type MessageEncodingRef

type MessageEncodingRef interface {
	Path() string
	MessageEncoding() MessageEncoding
}

MessageEncodingRef is a message encoding file reference.

func NewMessageEncodingRef

func NewMessageEncodingRef(
	ctx context.Context,
	value string,
	defaultEncoding MessageEncoding,
) (MessageEncodingRef, error)

NewMessageEncodingRef returns a new MessageEncodingRef.

Jump to

Keyboard shortcuts

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