types

package
v1.3.97 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BoolType = boolType{}
View Source
var BytesType = bytesType{}
View Source
var DateType = dateType{}
View Source
var Float32Type = float32Type{}
View Source
var Float64Type = float64Type{}
View Source
var Int32Type = int32Type{}
View Source
var Int64Type = int64Type{}
View Source
var ListType = listType{}
View Source
var MapType = mapType{}
View Source
var ObjectType = objectType{}
View Source
var ReferenceType = referenceType{}
View Source
var StringType = stringType{}
View Source
var StructType = structType{}
View Source
var TimeType = timeType{}
View Source
var TimestampType = timestampType{}
View Source
var UuidType = uuidType{}

Functions

func Dereference

func Dereference(val interface{}) interface{}

func GetAllResourcePropertyTypes

func GetAllResourcePropertyTypes() []model.ResourceProperty_Type

func IsPrimitive

func IsPrimitive(resourcePropertyType model.ResourceProperty_Type) bool

func IsTimeType added in v1.3.43

func IsTimeType(resourcePropertyType model.ResourceProperty_Type) bool

Types

type PropertyType

type PropertyType interface {
	Pointer(required bool) any
	String(val any) string
	IsEmpty(value any) bool
	Pack(value interface{}) (*structpb.Value, error)
	UnPack(value *structpb.Value) (interface{}, error)
	Default() any
	Equals(a, b interface{}) bool
}

func ByResourcePropertyType

func ByResourcePropertyType(resourcePropertyType model.ResourceProperty_Type) PropertyType

Jump to

Keyboard shortcuts

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