Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrItemAlreadyExist = errors.New("item already exist") ErrKeyNotFound = errors.New("key not found") )
Functions ¶
This section is empty.
Types ¶
type Vault ¶
type Vault[T any] interface { Add(ctx context.Context, name string, model T) error Get(ctx context.Context, name string) (*T, error) List(ctx context.Context) (map[string]T, error) Remove(ctx context.Context, name string) error Update(ctx context.Context, name string, model T) error Ping(ctx context.Context) error }
Click to show internal directories.
Click to hide internal directories.