accounts

package
v0.0.0-...-05df700 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const WorkerRole = "worker"

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id       int    `db:"id"`
	PublicId string `db:"public_id"`
	Fullname string `db:"full_name"`
	Position string `db:"position"`
}

type Repository

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

func New

func New(db *sqlx.DB) *Repository

func (*Repository) Create

func (r *Repository) Create(publicId, fullName, position string) (*Account, error)

func (*Repository) ListWorkers

func (r *Repository) ListWorkers() ([]Account, error)

Jump to

Keyboard shortcuts

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