time

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_tiga_protobuf_time_time_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Date

type Date struct {
	T int64 `protobuf:"varint,1,opt,name=t,proto3" json:"t,omitempty"`
	// contains filtered or unexported fields
}

func (*Date) Descriptor deprecated

func (*Date) Descriptor() ([]byte, []int)

Deprecated: Use Date.ProtoReflect.Descriptor instead.

func (*Date) GetT

func (x *Date) GetT() int64

func (*Date) ProtoMessage

func (*Date) ProtoMessage()

func (*Date) ProtoReflect

func (x *Date) ProtoReflect() protoreflect.Message

func (*Date) Reset

func (x *Date) Reset()

func (*Date) String

func (x *Date) String() string

type Model

type Model struct {
	CreatedAt string `protobuf:"bytes,1,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"`
	UpdateAt  string `protobuf:"bytes,2,opt,name=updateAt,proto3" json:"updateAt,omitempty" gorm:"type:timestamptz(6);default:now();index"`
	DeletedAt string `protobuf:"bytes,3,opt,name=deletedAt,proto3" json:"deletedAt,omitempty" gorm:"<-:false;type:timestamptz(6);index"`
	// contains filtered or unexported fields
}

func (*Model) Descriptor deprecated

func (*Model) Descriptor() ([]byte, []int)

Deprecated: Use Model.ProtoReflect.Descriptor instead.

func (*Model) GetCreatedAt

func (x *Model) GetCreatedAt() string

func (*Model) GetDeletedAt

func (x *Model) GetDeletedAt() string

func (*Model) GetUpdateAt

func (x *Model) GetUpdateAt() string

func (*Model) ProtoMessage

func (*Model) ProtoMessage()

func (*Model) ProtoReflect

func (x *Model) ProtoReflect() protoreflect.Message

func (*Model) Reset

func (x *Model) Reset()

func (*Model) String

func (x *Model) String() string

type Time

type Time struct {
	T int64 `protobuf:"varint,1,opt,name=t,proto3" json:"t,omitempty"`
	// contains filtered or unexported fields
}

func (*Time) Descriptor deprecated

func (*Time) Descriptor() ([]byte, []int)

Deprecated: Use Time.ProtoReflect.Descriptor instead.

func (Time) Format

func (ts Time) Format(foramt string) string

func (*Time) GetT

func (x *Time) GetT() int64

func (*Time) GobDecode

func (date *Time) GobDecode(data []byte) error

func (Time) GobEncode

func (date Time) GobEncode() ([]byte, error)

func (Time) GormDataType

func (ts Time) GormDataType() string

GormDataType gorm common data type

func (Time) MarshalBinary

func (ts Time) MarshalBinary() ([]byte, error)

func (Time) MarshalJSON

func (date Time) MarshalJSON() ([]byte, error)

func (*Time) ProtoMessage

func (*Time) ProtoMessage()

func (*Time) ProtoReflect

func (x *Time) ProtoReflect() protoreflect.Message

func (*Time) Reset

func (x *Time) Reset()

func (*Time) Scan

func (ts *Time) Scan(value interface{}) (err error)

func (*Time) String

func (x *Time) String() string

func (*Time) UnmarshalBinary

func (ts *Time) UnmarshalBinary(data []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface.

func (*Time) UnmarshalJSON

func (date *Time) UnmarshalJSON(data []byte) error

func (Time) Value

func (ts Time) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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