protostruct

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package protostruct supports operations on the protocol buffer Struct message.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeToMap

func DecodeToMap(s *pb.Struct) map[string]interface{}

DecodeToMap converts a pb.Struct to a map from strings to Go types. DecodeToMap panics if s is invalid.

func EncodeToStruct

func EncodeToStruct(v map[string]interface{}) *pb.Struct

EncodeToStruct converts a map[string]interface{} to a ptypes.Struct

func ToValue

func ToValue(v interface{}) *pb.Value

ToValue converts an interface{} to a ptypes.Value

Types

This section is empty.

Jump to

Keyboard shortcuts

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