persistence

package
v0.0.0-...-2af345c Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheRedis

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

func NewCacheRedis

func NewCacheRedis(pool *redis.Client) *CacheRedis

func (*CacheRedis) Invalidate

func (c *CacheRedis) Invalidate(ctx context.Context, table, key string) error

func (*CacheRedis) Read

func (c *CacheRedis) Read(ctx context.Context, table, key string) (string, error)

func (*CacheRedis) Write

func (c *CacheRedis) Write(ctx context.Context, table, key string, value interface{}, duration time.Duration) error

type UserAWSRepository

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

func (*UserAWSRepository) Fetch

func (*UserAWSRepository) FetchOne

func (r *UserAWSRepository) FetchOne(ctx context.Context, byUsername bool, key string) (*aggregate.UserRoot, error)

func (*UserAWSRepository) HardRemove

func (r *UserAWSRepository) HardRemove(ctx context.Context, id string) error

func (*UserAWSRepository) Remove

func (r *UserAWSRepository) Remove(ctx context.Context, id string) error

func (*UserAWSRepository) Restore

func (r *UserAWSRepository) Restore(ctx context.Context, id string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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