utils

package
v0.1.1-beta8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 19 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, parseFile string) (jsonpb.AnyResolver, error)

LoadAnyResolver is a util that helps resolve `Any` messages

func MessageFQN

func MessageFQN(msg descriptor.Message) string

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)

Types

This section is empty.

Jump to

Keyboard shortcuts

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