memuser

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 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"`
	Name      string    `json:"name" xml:"name"`
	BirthDate time.Time `json:"birth_date" xml:"birth_date"`
}

func (*User) IDFromString

func (u *User) IDFromString(s string) error

func (User) IDString

func (u User) IDString() string

type UserProvider

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

func NewUserProvider

func NewUserProvider() *UserProvider

func (*UserProvider) Create

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

func (*UserProvider) Delete

func (UserProvider) Get

func (UserProvider) ListAll

func (up UserProvider) ListAll(ctx context.Context) ([]*User, error)

func (*UserProvider) Update

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

Jump to

Keyboard shortcuts

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