Documentation ¶
Index ¶
- type LoggingAuthorMiddleware
- func (mw LoggingAuthorMiddleware) Create(ctx context.Context, aggregate *domain.AuthorAggregate) (output *domain.Author, err error)
- func (mw LoggingAuthorMiddleware) Delete(ctx context.Context, id string) (err error)
- func (mw LoggingAuthorMiddleware) Get(ctx context.Context, id string) (output *domain.Author, err error)
- func (mw LoggingAuthorMiddleware) HardDelete(ctx context.Context, id string) (err error)
- func (mw LoggingAuthorMiddleware) List(ctx context.Context, pageToken, pageSize string, ...) (output []*domain.Author, nextToken string, err error)
- func (mw LoggingAuthorMiddleware) Restore(ctx context.Context, id string) (err error)
- func (mw LoggingAuthorMiddleware) Update(ctx context.Context, aggregate *domain.AuthorUpdateAggregate) (output *domain.Author, err error)
- type LoggingAuthorSAGAMiddleware
- func (mw LoggingAuthorSAGAMiddleware) Done(ctx context.Context, rootID, operation string) (err error)
- func (mw LoggingAuthorSAGAMiddleware) Failed(ctx context.Context, rootID, operation, snapshot string) (err error)
- func (mw LoggingAuthorSAGAMiddleware) RemovePicture(ctx context.Context, rootID []byte) (err error)
- func (mw LoggingAuthorSAGAMiddleware) UpdatePicture(ctx context.Context, rootID string, urlJSON []byte) (err error)
- func (mw LoggingAuthorSAGAMiddleware) Verify(ctx context.Context, service string, authorsJSON []byte) (err error)
- type MetricAuthorMiddleware
- func (mw MetricAuthorMiddleware) Create(ctx context.Context, aggregate *domain.AuthorAggregate) (output *domain.Author, err error)
- func (mw MetricAuthorMiddleware) Delete(ctx context.Context, id string) (err error)
- func (mw MetricAuthorMiddleware) Get(ctx context.Context, id string) (output *domain.Author, err error)
- func (mw MetricAuthorMiddleware) HardDelete(ctx context.Context, id string) (err error)
- func (mw MetricAuthorMiddleware) List(ctx context.Context, pageToken, pageSize string, ...) (output []*domain.Author, nextToken string, err error)
- func (mw MetricAuthorMiddleware) Restore(ctx context.Context, id string) (err error)
- func (mw MetricAuthorMiddleware) Update(ctx context.Context, aggregate *domain.AuthorUpdateAggregate) (output *domain.Author, err error)
- type MetricAuthorSAGAMiddleware
- func (mw MetricAuthorSAGAMiddleware) Done(ctx context.Context, rootID, operation string) (err error)
- func (mw MetricAuthorSAGAMiddleware) Failed(ctx context.Context, rootID, operation, snapshot string) (err error)
- func (mw MetricAuthorSAGAMiddleware) RemovePicture(ctx context.Context, rootID []byte) (err error)
- func (mw MetricAuthorSAGAMiddleware) UpdatePicture(ctx context.Context, rootID string, urlJSON []byte) (err error)
- func (mw MetricAuthorSAGAMiddleware) Verify(ctx context.Context, service string, authorsJSON []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggingAuthorMiddleware ¶
type LoggingAuthorMiddleware struct { Logger log.Logger Next usecase.AuthorInteractor }
func (LoggingAuthorMiddleware) Create ¶
func (mw LoggingAuthorMiddleware) Create(ctx context.Context, aggregate *domain.AuthorAggregate) (output *domain.Author, err error)
func (LoggingAuthorMiddleware) Delete ¶
func (mw LoggingAuthorMiddleware) Delete(ctx context.Context, id string) (err error)
func (LoggingAuthorMiddleware) HardDelete ¶
func (mw LoggingAuthorMiddleware) HardDelete(ctx context.Context, id string) (err error)
func (LoggingAuthorMiddleware) List ¶
func (mw LoggingAuthorMiddleware) List(ctx context.Context, pageToken, pageSize string, filterParams core.FilterParams) (output []*domain.Author, nextToken string, err error)
func (LoggingAuthorMiddleware) Restore ¶
func (mw LoggingAuthorMiddleware) Restore(ctx context.Context, id string) (err error)
func (LoggingAuthorMiddleware) Update ¶
func (mw LoggingAuthorMiddleware) Update(ctx context.Context, aggregate *domain.AuthorUpdateAggregate) (output *domain.Author, err error)
type LoggingAuthorSAGAMiddleware ¶
type LoggingAuthorSAGAMiddleware struct { Logger log.Logger Next usecase.AuthorSAGAInteractor }
func (LoggingAuthorSAGAMiddleware) Done ¶
func (mw LoggingAuthorSAGAMiddleware) Done(ctx context.Context, rootID, operation string) (err error)
func (LoggingAuthorSAGAMiddleware) Failed ¶
func (mw LoggingAuthorSAGAMiddleware) Failed(ctx context.Context, rootID, operation, snapshot string) (err error)
func (LoggingAuthorSAGAMiddleware) RemovePicture ¶
func (mw LoggingAuthorSAGAMiddleware) RemovePicture(ctx context.Context, rootID []byte) (err error)
func (LoggingAuthorSAGAMiddleware) UpdatePicture ¶
type MetricAuthorMiddleware ¶
type MetricAuthorMiddleware struct { RequestCount metrics.Counter RequestLatency metrics.Histogram Next usecase.AuthorInteractor }
func (MetricAuthorMiddleware) Create ¶
func (mw MetricAuthorMiddleware) Create(ctx context.Context, aggregate *domain.AuthorAggregate) (output *domain.Author, err error)
func (MetricAuthorMiddleware) Delete ¶
func (mw MetricAuthorMiddleware) Delete(ctx context.Context, id string) (err error)
func (MetricAuthorMiddleware) HardDelete ¶
func (mw MetricAuthorMiddleware) HardDelete(ctx context.Context, id string) (err error)
func (MetricAuthorMiddleware) List ¶
func (mw MetricAuthorMiddleware) List(ctx context.Context, pageToken, pageSize string, filterParams core.FilterParams) (output []*domain.Author, nextToken string, err error)
func (MetricAuthorMiddleware) Restore ¶
func (mw MetricAuthorMiddleware) Restore(ctx context.Context, id string) (err error)
func (MetricAuthorMiddleware) Update ¶
func (mw MetricAuthorMiddleware) Update(ctx context.Context, aggregate *domain.AuthorUpdateAggregate) (output *domain.Author, err error)
type MetricAuthorSAGAMiddleware ¶
type MetricAuthorSAGAMiddleware struct { RequestCount metrics.Counter RequestLatency metrics.Histogram Next usecase.AuthorSAGAInteractor }
func (MetricAuthorSAGAMiddleware) Done ¶
func (mw MetricAuthorSAGAMiddleware) Done(ctx context.Context, rootID, operation string) (err error)
func (MetricAuthorSAGAMiddleware) Failed ¶
func (mw MetricAuthorSAGAMiddleware) Failed(ctx context.Context, rootID, operation, snapshot string) (err error)
func (MetricAuthorSAGAMiddleware) RemovePicture ¶
func (mw MetricAuthorSAGAMiddleware) RemovePicture(ctx context.Context, rootID []byte) (err error)
func (MetricAuthorSAGAMiddleware) UpdatePicture ¶
Click to show internal directories.
Click to hide internal directories.