memuser

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID           int       `json:"id" xml:"id"`
	BirthDate    time.Time `json:"birth_date" xml:"birth_date"`
	Name         string    `json:"name" xml:"name"`
	EmailAddress string    `json:"email_address" xml:"email_address"`
}

start User Entity OMIT

type UserProvider

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

start User Provider OMIT

func NewUserProvider

func NewUserProvider(logger *log.Logger) *UserProvider

func (*UserProvider) Create

func (up *UserProvider) Create(ctx context.Context, u User) (User, error)

func (*UserProvider) Delete

func (up *UserProvider) Delete(ctx context.Context, idString string) error

func (UserProvider) Get

func (up UserProvider) Get(ctx context.Context, idString string) (User, error)

func (UserProvider) List added in v0.7.0

func (up UserProvider) List(ctx context.Context, offset, limit int) ([]User, error)

func (*UserProvider) Update

func (up *UserProvider) Update(ctx context.Context, u User) error

start User Provider Update OMIT

Jump to

Keyboard shortcuts

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