Documentation
¶
Overview ¶
Package account present full API functionality of the specific object
Index ¶
- func ActionFromContext(ctx context.Context) string
- func MessageFromContext(ctx context.Context) string
- func PKFromContext(ctx context.Context) any
- func WithAction(ctx context.Context, action string) context.Context
- func WithMessage(ctx context.Context, msg string) context.Context
- func WithMessageAndPK(ctx context.Context, msg string, pk any) context.Context
- func WithPK(ctx context.Context, pk any) context.Context
- type Filter
- type Order
- type Repository
- type Usecase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionFromContext ¶
ActionFromContext returns action from context
func MessageFromContext ¶
MessageFromContext returns message from context
func PKFromContext ¶ added in v0.1.12
PKFromContext returns primary key from context
func WithAction ¶
WithAction returns context with action
func WithMessage ¶
WithMessage returns context with message
func WithMessageAndPK ¶ added in v0.1.12
WithMessageAndPK returns context with message and primary key
Types ¶
type Filter ¶
type Filter struct { ID []uuid.UUID RequestID []string Name []string UserID []uint64 AccountID []uint64 ObjectID []uint64 ObjectIDStr []string ObjectType []string }
Filter of the objects list
type Order ¶
type Repository ¶
type Repository interface { Count(ctx context.Context, filter *Filter) (int64, error) FetchList(ctx context.Context, filter *Filter, order *Order, pagination *repository.Pagination) ([]*model.HistoryAction, error) }
Repository of access to the changelog
Directories
¶
Path | Synopsis |
---|---|
delivery
|
|
middleware
|
|
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
Package repository implements methods of working with the repository objects
|
Package repository implements methods of working with the repository objects |
Package usecase account implementation
|
Package usecase account implementation |
Click to show internal directories.
Click to hide internal directories.