users

package
v0.0.0-...-c756ae2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Svc

type Svc struct {
	// contains filtered or unexported fields
}

func NewSvc

func NewSvc(db *pg.DB) *Svc

func (*Svc) GetByID

func (s *Svc) GetByID(id int64) (User, error)

func (*Svc) Persist

func (s *Svc) Persist(u *User) error

type User

type User struct {
	ID        int64     `pg:"id,pk"`
	Username  string    `pg:"username"`
	FirstName string    `pg:"first_name,notnull"`
	LastName  string    `pg:"last_name"`
	Created   time.Time `pg:"created,notnull"`
	Updated   time.Time `pg:"updated"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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