memory

package
v0.0.0-...-26b8432 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemoryStore

func NewMemoryStore() userz.Store

Types

type MemoryIterator

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

func (*MemoryIterator) Len

func (*MemoryIterator) Next

func (i *MemoryIterator) Next(ctx context.Context) ([]*userz.User, error)

type MemoryStore

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

func (*MemoryStore) Add

func (s *MemoryStore) Add(ctx context.Context, user *userz.UserData) (*userz.User, error)

func (*MemoryStore) List

func (s *MemoryStore) List(ctx context.Context, filter *userz.Filter, pageSize uint) (userz.Iterator[[]*userz.User], error)

func (*MemoryStore) Page

func (s *MemoryStore) Page(ctx context.Context, filter *userz.Filter, params *userz.PageParams) ([]*userz.User, error)

func (*MemoryStore) Remove

func (s *MemoryStore) Remove(ctx context.Context, id string) (*userz.User, error)

func (*MemoryStore) Update

func (s *MemoryStore) Update(ctx context.Context, id string, user *userz.UserData) (*userz.User, error)

Jump to

Keyboard shortcuts

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