proto

package
v0.0.0-...-6367170 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(value bool) *bool

Bool stores v in a new bool value and returns a pointer to it.

func FieldMask

func FieldMask(columns ...string) *fieldmaskpb.FieldMask

FieldMask creates a field mask that usuaally used to update the field.

func Float32

func Float32(value float32) *float32

Float32 stores v in a new bool value and returns a pointer to it.

func Float64

func Float64(value float64) *float64

Float64 stores v in a new bool value and returns a pointer to it.

func GetBool

func GetBool(value *bool) bool

GetBool returns the bool from pointer.

func GetFloat32

func GetFloat32(value *float32) float32

GetFloat32 returns the bool from pointer.

func GetFloat64

func GetFloat64(value *float64) float64

GetFloat64 returns the bool from pointer.

func GetInt32

func GetInt32(value *int32) int32

GetInt32 returns the bool from pointer.

func GetInt64

func GetInt64(value *int64) int64

GetInt64 returns the bool from pointer.

func GetString

func GetString(value *string) string

GetString returns the string from pointer.

func GetTime

func GetTime(value *time.Time) time.Time

GetTime returns the time from pointer.

func Int32

func Int32(value int32) *int32

Int32 stores v in a new bool value and returns a pointer to it.

func Int64

func Int64(value int64) *int64

Int64 stores v in a new bool value and returns a pointer to it.

func NamespaceRef

func NamespaceRef(x proto.Message) string

NamespaceRef returns the message namespace

func OrderByMask

func OrderByMask(clause ...string) *fieldmaskpb.FieldMask

OrderByMask creates a field mask that usuaally used to order by the field.

func String

func String(value string) *string

String stores v in a new string value and returns a pointer to it.

func Time

func Time(value time.Time) *time.Time

Time stores v in a new string value and returns a pointer to it.

func Timestamp

func Timestamp(value *time.Time) *timestamppb.Timestamp

Timestamp converts a time to timestamp.

func URLRef

func URLRef(x proto.Message) string

URLRef returns the type name.

func UnionMask

func UnionMask(x *fieldmaskpb.FieldMask, columns ...string) *fieldmaskpb.FieldMask

UnionMask returns the union of all the paths in the input field masks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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