Documentation ¶
Overview ¶
Package dml provides golang support for github.com/gaterace/xdml DmlExtension struct.
Index ¶
- Variables
- type DateTime
- func (*DateTime) Descriptor() ([]byte, []int)deprecated
- func (x *DateTime) GetMilliseconds() int64
- func (m *DateTime) MarshalJSON() ([]byte, error)
- func (*DateTime) ProtoMessage()
- func (x *DateTime) ProtoReflect() protoreflect.Message
- func (x *DateTime) Reset()
- func (x *DateTime) String() string
- func (m *DateTime) TimeFromDateTime() time.Time
- type Decimal
- func (m *Decimal) ConvertDecimal() (sdec.Decimal, error)
- func (*Decimal) Descriptor() ([]byte, []int)deprecated
- func (x *Decimal) GetPlaintext() string
- func (*Decimal) ProtoMessage()
- func (x *Decimal) ProtoReflect() protoreflect.Message
- func (x *Decimal) Reset()
- func (x *Decimal) String() string
- func (m *Decimal) StringFromDecimal() string
- type Guid
- func (m *Guid) ConvertUuid() (uuid.UUID, error)
- func (*Guid) Descriptor() ([]byte, []int)deprecated
- func (x *Guid) GetGuid() []byte
- func (m *Guid) MarshalJSON() ([]byte, error)
- func (*Guid) ProtoMessage()
- func (x *Guid) ProtoReflect() protoreflect.Message
- func (x *Guid) Reset()
- func (x *Guid) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_DmlExtension_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DateTime ¶
type DateTime struct { Milliseconds int64 `protobuf:"varint,1,opt,name=milliseconds,proto3" json:"milliseconds,omitempty"` // contains filtered or unexported fields }
func DateTimeFromString ¶
Create a dml.DateTime structure from a string. String can be in format
YYYY-MM-DD HH:MM:SS
or
YYYY-MM-DD HH:MM:SS.dddddd
or
YYYY-MM-DD
func DateTimeFromTime ¶ added in v1.1.0
Create a dml.Datetime structure from a time.Time value
func (*DateTime) Descriptor
deprecated
func (*DateTime) GetMilliseconds ¶
func (*DateTime) MarshalJSON ¶
func (*DateTime) ProtoMessage ¶
func (*DateTime) ProtoMessage()
func (*DateTime) ProtoReflect ¶ added in v1.2.0
func (x *DateTime) ProtoReflect() protoreflect.Message
func (*DateTime) TimeFromDateTime ¶
Create a time.Time value from a dml.DateTime instance.
type Decimal ¶
type Decimal struct { Plaintext string `protobuf:"bytes,1,opt,name=plaintext,proto3" json:"plaintext,omitempty"` // contains filtered or unexported fields }
func ConvertDecimal ¶
Convert shopspring decimal.Decimal to dml.Decimal
func DecimalFromString ¶
Create a dml.Decimal struct from a string.
func (*Decimal) ConvertDecimal ¶
Convert dml.Decimal instance to shopspring decimal.Decimal
func (*Decimal) Descriptor
deprecated
func (*Decimal) GetPlaintext ¶
func (*Decimal) ProtoMessage ¶
func (*Decimal) ProtoMessage()
func (*Decimal) ProtoReflect ¶ added in v1.2.0
func (x *Decimal) ProtoReflect() protoreflect.Message
func (*Decimal) StringFromDecimal ¶
Get the string representation of a dml.Decimal instance.
type Guid ¶
type Guid struct { Guid []byte `protobuf:"bytes,1,opt,name=guid,proto3" json:"guid,omitempty"` // contains filtered or unexported fields }
func GuidFromBytes ¶ added in v1.1.0
Create dml.Guid from byte slice
func GuidFromString ¶ added in v1.1.0
Create dml.Guid from string with hex representation
func (*Guid) ConvertUuid ¶
Convert dml.Guid to Uuid.
func (*Guid) Descriptor
deprecated
func (*Guid) MarshalJSON ¶ added in v1.1.0
func (*Guid) ProtoMessage ¶
func (*Guid) ProtoMessage()
func (*Guid) ProtoReflect ¶ added in v1.2.0
func (x *Guid) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.