domain

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 4 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Validator = validator.New()

	ErrInvalidArgument  = errors.New("invalid argument")
	ErrPermissionDenied = errors.New("permission denied")
)

Functions

This section is empty.

Types

type BaseModel

type BaseModel struct {
	Version   int `validate:"required,gte=1"`
	CreatedAt time.Time
	UpdatedAt time.Time
	CreatedBy int `validate:"gte=0"`
	UpdatedBy int `validate:"gte=0"`
}

func NewBaseModel

func NewBaseModel(version int, createdAt, updatedAt time.Time, createdBy, updatedBy int) (*BaseModel, error)

type ContextKey

type ContextKey string

Jump to

Keyboard shortcuts

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