model

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arg

type Arg interface {
	ArgType() string
}

type Argument

type Argument struct{}

func (*Argument) ArgType

func (a *Argument) ArgType() string

type Base

type Base struct {
	Created
	UpdatedAt *time.Time `db:"updated_at"`
}

type Created

type Created struct {
	Record
	CreatedAt *time.Time `db:"created_at"`
}

type Identifier

type Identifier interface {
	SetId(uint32)
}

type Page

type Page struct {
	Argument
	Offset int
	Limit  int
}

func (*Page) Num

func (p *Page) Num() int

func (*Page) Size

func (p *Page) Size() int

type Pager

type Pager interface {
	Arg
	Num() int
	Size() int
}

type Record

type Record struct {
	Id uint32
}

func (*Record) SetId

func (i *Record) SetId(id uint32)

SetId implements Identifier.

Jump to

Keyboard shortcuts

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