Documentation ¶
Index ¶
- Variables
- func LoadAnyResolver(rootPath string, parseFiles ...string) (jsonpb.AnyResolver, error)
- func LoadLocalProtoFiles(root string) (fds []protoreflect.FileDescriptor, err error)
- func LoadRemoteDescriptorsFromBuf(ctx context.Context, repo string) (*descriptorpb.FileDescriptorSet, error)
- func LocalResolver(protoconfRoot string) *protoregistry.Types
- func ReadConfig(protoconfRoot string, configName string) (*protoconfvalue.ProtoconfValue, error)
- func ReplaceProtoBytes(protoBytes []byte, pos int, length int, replacement []byte) ([]byte, error)
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.