14 lines
405 B
Go
14 lines
405 B
Go
package storage
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type UserRepository interface {
|
|
Create(ctx context.Context, username string, attributes map[string]any) (*User, error)
|
|
Update(ctx context.Context, username string, attributes map[string]any) (*User, error)
|
|
Delete(ctx context.Context, username string) error
|
|
Get(ctx context.Context, username string) (*User, error)
|
|
List(ctx context.Context) ([]string, error)
|
|
}
|