staffrepo

package
v0.0.0-...-1920916 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

func New

func New() *Repo

func (*Repo) Delete

func (r *Repo) Delete(ctx context.Context, id uint64) error

Delete implements staffservice.StaffRepo

func (*Repo) Get

func (r *Repo) Get(ctx context.Context, id uint64) (domain.Employee, error)

Get implements staffservice.StaffRepo

func (*Repo) List

func (r *Repo) List(ctx context.Context) ([]domain.Employee, error)

List implements staffservice.StaffRepo

func (*Repo) Save

func (r *Repo) Save(ctx context.Context, e domain.Employee) (uint64, error)

Save implements staffservice.StaffRepo

func (*Repo) Update

func (r *Repo) Update(ctx context.Context, u domain.Employee) (domain.Employee, error)

Update implements staffservice.StaffRepo

Jump to

Keyboard shortcuts

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