inmem

package
v0.0.0-...-4125756 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserStorage

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

UserStorage a dummy way to store users.

func New

func New() *UserStorage

func (*UserStorage) Create

func (u *UserStorage) Create(ctx context.Context, usr *sampleapp.User) error

func (*UserStorage) Delete

func (u *UserStorage) Delete(ctx context.Context, id string) error

func (*UserStorage) Fetch

func (u *UserStorage) Fetch(ctx context.Context, id string) (*sampleapp.User, error)

Jump to

Keyboard shortcuts

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