Documentation
¶
Index ¶
- Constants
- Variables
- type CreateCommand
- type Event
- type Repository
- type Service
- func (s Service) Create(ctx context.Context, args any) error
- func (s Service) Delete(ctx context.Context, id string) error
- func (s Service) GetByID(ctx context.Context, id string) (View, error)
- func (s Service) List(ctx context.Context, cr storage.Criteria) ([]View, storage.PageToken, error)
- func (s Service) Update(ctx context.Context, args any) error
- type UpdateCommand
- type User
- type View
Constants ¶
View Source
const (
Stream = "coinlog.users"
)
Variables ¶
View Source
var ErrNotFound = exception.ResourceNotFound{Resource: "user"}
Functions ¶
This section is empty.
Types ¶
type CreateCommand ¶
type Event ¶
type Event struct { UserID string DisplayName string Action string customtype.Auditable }
type Repository ¶
type Repository interface { storage.Repository[User] }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(r Repository, b *messaging.Bus) (Service, error)
type UpdateCommand ¶
Click to show internal directories.
Click to hide internal directories.