utils

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOverflow = errors.New("proto: integer overflow")

ErrOverflow is returned when an integer is too large to be represented.

Functions

func LoadAnyResolver

func LoadAnyResolver(rootPath string, parseFiles ...string) (jsonpb.AnyResolver, error)

LoadAnyResolver is a util that helps resolve `Any` messages

func LoadLocalProtoFiles added in v0.1.7

func LoadLocalProtoFiles(root string) (fds []protoreflect.FileDescriptor, err error)

func LoadRemoteDescriptorsFromBuf added in v0.1.7

func LoadRemoteDescriptorsFromBuf(ctx context.Context, repo string) (*descriptorpb.FileDescriptorSet, error)

func LocalResolver added in v0.1.7

func LocalResolver(protoconfRoot string) *protoregistry.Types

func ReadConfig

func ReadConfig(protoconfRoot string, configName string) (*protoconfvalue.ProtoconfValue, error)

ReadConfig reads a materialized config

func ReplaceProtoBytes

func ReplaceProtoBytes(protoBytes []byte, pos int, length int, replacement []byte) ([]byte, error)

ReplaceProtoBytes replaces the information inside a proto serialized byte array

Types

This section is empty.

Jump to

Keyboard shortcuts

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