vo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ID

type ID struct {
	ID primitive.ObjectID `json:"id" bson:"_id,omitempty"`
}

func NewID

func NewID(oid primitive.ObjectID) ID

func (*ID) Hex

func (i *ID) Hex() string

type Timestamp

type Timestamp struct {
	CreatedAt time.Time `json:"createdAt" bson:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"`
}

func (Timestamp) GetCreatedAt

func (t Timestamp) GetCreatedAt() time.Time

func (Timestamp) GetUpdatedAt

func (t Timestamp) GetUpdatedAt() time.Time

Jump to

Keyboard shortcuts

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