field

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAnyPb

func FromAnyPb(impl *anypb.Any) data.Value

func FromFieldPb

func FromFieldPb(impl *protobufs.DatabaseField) data.Field

func FromRequest

func FromRequest(r data.Request) data.Field

func NewValue

func NewValue() data.Value

func ToAnyPb

func ToAnyPb(v data.Value) *anypb.Any

func ToFieldPb

func ToFieldPb(f data.Field) *protobufs.DatabaseField

Types

type Field

type Field struct {
	// contains filtered or unexported fields
}

func (*Field) GetEntityId

func (f *Field) GetEntityId() string

func (*Field) GetFieldName

func (f *Field) GetFieldName() string

func (*Field) GetValue

func (f *Field) GetValue() data.Value

func (*Field) GetWriteTime

func (f *Field) GetWriteTime() time.Time

func (*Field) GetWriter

func (f *Field) GetWriter() string

type Schema

type Schema struct {
	// contains filtered or unexported fields
}

func (Schema) GetFieldName

func (s Schema) GetFieldName() string

func (Schema) GetFieldType

func (s Schema) GetFieldType() string

type Value

type Value struct {
	// contains filtered or unexported fields
}

func (*Value) GetBinaryFile

func (v *Value) GetBinaryFile() string

func (*Value) GetBool

func (v *Value) GetBool() bool

func (*Value) GetEntityReference

func (v *Value) GetEntityReference() string

func (*Value) GetFloat

func (v *Value) GetFloat() float64

func (*Value) GetInt

func (v *Value) GetInt() int64

func (*Value) GetString

func (v *Value) GetString() string

func (*Value) GetTimestamp

func (v *Value) GetTimestamp() time.Time

func (*Value) GetTransformation

func (v *Value) GetTransformation() string

func (*Value) GetType

func (v *Value) GetType() string

func (*Value) IsBinaryFile

func (v *Value) IsBinaryFile() bool

func (*Value) IsBool

func (v *Value) IsBool() bool

func (*Value) IsEntityReference

func (v *Value) IsEntityReference() bool

func (*Value) IsFloat

func (v *Value) IsFloat() bool

func (*Value) IsInt

func (v *Value) IsInt() bool

func (*Value) IsString

func (v *Value) IsString() bool

func (*Value) IsTimestamp

func (v *Value) IsTimestamp() bool

func (*Value) IsTransformation

func (v *Value) IsTransformation() bool

func (*Value) SetBinaryFile

func (v *Value) SetBinaryFile(b interface{}) data.Value

func (*Value) SetBool

func (v *Value) SetBool(b interface{}) data.Value

func (*Value) SetEntityReference

func (v *Value) SetEntityReference(e interface{}) data.Value

func (*Value) SetFloat

func (v *Value) SetFloat(f interface{}) data.Value

func (*Value) SetInt

func (v *Value) SetInt(i interface{}) data.Value

func (*Value) SetString

func (v *Value) SetString(s interface{}) data.Value

func (*Value) SetTimestamp

func (v *Value) SetTimestamp(t interface{}) data.Value

func (*Value) SetTransformation

func (v *Value) SetTransformation(t interface{}) data.Value

Jump to

Keyboard shortcuts

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