Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatedEvent ¶
func NewCreatedEvent ¶
func NewCreatedEvent(data CreateDTO, result Session) (*CreatedEvent, error)
type DeletedEvent ¶
type DeletedEvent struct {
Result Session
}
func NewDeletedEvent ¶
func NewDeletedEvent(result Session) (*DeletedEvent, error)
type Repository ¶
type Repository interface { Count(ctx context.Context) (int64, error) GetAll(ctx context.Context) ([]*Session, error) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*Session, error) GetByToken(ctx context.Context, id string) (*Session, error) Create(ctx context.Context, user *Session) error Update(ctx context.Context, user *Session) error Delete(ctx context.Context, id int64) error }
Click to show internal directories.
Click to hide internal directories.