protoutils

package module
v0.0.0-...-02667a8 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 4 Imported by: 4

README

protoutils

Protocol Buffer utility functions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStruct

func NewStruct(v map[string]interface{}) (*structpb.Struct, error)

NewStruct This is a copy of structpb.NewStruct() except we use FromValue() instead of structpb.NewValue()

func ToValue

func ToValue(data interface{}) (*structpb.Value, error)

ToValue converts custom types to a structpb.Value. This helper was added since structpb.NewValue has a limited set of types that it supports. More details here: https://github.com/golang/protobuf/issues/1302#issuecomment-805453221

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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