value

package
v0.0.0-...-573fe8a Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBoolValue

func NewBoolValue(v bool) *grpc.Value

NewBoolValue constructs a new boolean Value.

func NewDoubleValue

func NewDoubleValue(v float64) *grpc.Value

NewNumberValue constructs a new number Value.

func NewIntegerValue

func NewIntegerValue(v int64) *grpc.Value

NewInteger constructs a new number Value.

func NewList

func NewList(v []interface{}) (*grpc.ListValue, error)

NewList constructs a ListValue from a general-purpose Go slice. The slice elements are converted using NewValue.

func NewListValue

func NewListValue(v *grpc.ListValue) *grpc.Value

NewListValue constructs a new list Value.

func NewNullValue

func NewNullValue() *grpc.Value

NewNullValue constructs a new null Value.

func NewStringValue

func NewStringValue(v string) *grpc.Value

NewStringValue constructs a new string Value.

func NewStruct

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

NewStruct constructs a Struct from a general-purpose Go map. The map keys must be valid UTF-8. The map values are converted using NewValue.

func NewStructValue

func NewStructValue(v *grpc.Struct) *grpc.Value

NewStructValue constructs a new struct Value.

func NewValue

func NewValue(v interface{}) (*grpc.Value, error)

NewValue constructs a *grpc.Value from a general-purpose Go interface.

func NewValueMap

func NewValueMap(inputMap map[string]interface{}) map[string]*grpc.Value

Types

This section is empty.

Jump to

Keyboard shortcuts

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