Documentation
¶
Index ¶
- func AsBytes(src *structpb.Struct) []byte
- func AsJSONString(src *structpb.Struct) string
- func AsListValue(str []string) *structpb.ListValue
- func AsMap(src *structpb.Struct) map[string]interface{}
- func AsStringList(src *structpb.ListValue) []string
- func AsStruct(src map[string]interface{}) *structpb.Struct
- func CopyStructToStruct(dst *structpb.Struct, src *structpb.Struct)
- func CopyStructToStructSub(dst *structpb.Struct, keys []string, src *structpb.Struct)
- func CopyToStruct(s *structpb.Struct, values map[string]interface{})
- func CopyToStructSub(s *structpb.Struct, keys []string, values map[string]interface{})
- func NewStruct() *structpb.Struct
- func StructSet(s *structpb.Struct, key string, value interface{})
- func UnWrapValue(value *structpb.Value) interface{}
- func WrapValue(value interface{}) *structpb.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsJSONString ¶
AsJSONString takes a protobuf Struct and converts it into a JSON string
func AsListValue ¶
AsListValue takes a go []string and converts it into a protobuf ListValue
func AsStringList ¶
AsStringList takes a protobuf ListValue and converts it into a []string
func CopyStructToStruct ¶
CopyStructToStruct copy the contents of one protobuf struct to another
func CopyStructToStructSub ¶
CopyStructToStructSub copy the contents of one protobuf struct to another, but only using a subset of the keys
func CopyToStruct ¶
CopyToStruct copies values from map into protobuf struct
func CopyToStructSub ¶
CopyToStructSub copies a subset of keys from a map to a protobuf struct
func UnWrapValue ¶
UnWrapValue takes protobuf structpb Value and return a native go value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.