utils

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 18 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 MessageFQN

func MessageFQN(msg descriptor.Message) string

MessageFQN returns a fully qualified name of a message descriptor

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