Documentation ¶
Index ¶
- type LoggingMediaMiddleware
- func (mw LoggingMediaMiddleware) Create(ctx context.Context, aggregate *domain.MediaAggregate) (output *domain.Media, err error)
- func (mw LoggingMediaMiddleware) Delete(ctx context.Context, id string) (err error)
- func (mw LoggingMediaMiddleware) Get(ctx context.Context, id string) (output *domain.Media, err error)
- func (mw LoggingMediaMiddleware) HardDelete(ctx context.Context, id string) (err error)
- func (mw LoggingMediaMiddleware) List(ctx context.Context, pageToken, pageSize string, ...) (output []*domain.Media, nextToken string, err error)
- func (mw LoggingMediaMiddleware) Restore(ctx context.Context, id string) (err error)
- func (mw LoggingMediaMiddleware) Update(ctx context.Context, aggregate *domain.MediaUpdateAggregate) (output *domain.Media, err error)
- type LoggingMediaSAGAMiddleware
- func (mw LoggingMediaSAGAMiddleware) Done(ctx context.Context, rootID, operation string) (err error)
- func (mw LoggingMediaSAGAMiddleware) Failed(ctx context.Context, rootID, operation, backup string) (err error)
- func (mw LoggingMediaSAGAMiddleware) RemoveStatic(ctx context.Context, rootID []byte) (err error)
- func (mw LoggingMediaSAGAMiddleware) UpdateStatic(ctx context.Context, rootID string, urlJSON []byte) (err error)
- func (mw LoggingMediaSAGAMiddleware) VerifyAuthor(ctx context.Context, rootID string) (err error)
- type MetricMediaMiddleware
- func (mw MetricMediaMiddleware) Create(ctx context.Context, aggregate *domain.MediaAggregate) (output *domain.Media, err error)
- func (mw MetricMediaMiddleware) Delete(ctx context.Context, id string) (err error)
- func (mw MetricMediaMiddleware) Get(ctx context.Context, id string) (output *domain.Media, err error)
- func (mw MetricMediaMiddleware) HardDelete(ctx context.Context, id string) (err error)
- func (mw MetricMediaMiddleware) List(ctx context.Context, pageToken, pageSize string, ...) (output []*domain.Media, nextToken string, err error)
- func (mw MetricMediaMiddleware) Restore(ctx context.Context, id string) (err error)
- func (mw MetricMediaMiddleware) Update(ctx context.Context, aggregate *domain.MediaUpdateAggregate) (output *domain.Media, err error)
- type MetricMediaSAGAMiddleware
- func (mw MetricMediaSAGAMiddleware) Done(ctx context.Context, rootID, operation string) (err error)
- func (mw MetricMediaSAGAMiddleware) Failed(ctx context.Context, rootID, operation, backup string) (err error)
- func (mw MetricMediaSAGAMiddleware) RemoveStatic(ctx context.Context, rootID []byte) (err error)
- func (mw MetricMediaSAGAMiddleware) UpdateStatic(ctx context.Context, rootID string, urlJSON []byte) (err error)
- func (mw MetricMediaSAGAMiddleware) VerifyAuthor(ctx context.Context, rootID string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggingMediaMiddleware ¶
type LoggingMediaMiddleware struct { Logger log.Logger Next usecase.MediaInteractor }
func (LoggingMediaMiddleware) Create ¶
func (mw LoggingMediaMiddleware) Create(ctx context.Context, aggregate *domain.MediaAggregate) (output *domain.Media, err error)
func (LoggingMediaMiddleware) Delete ¶
func (mw LoggingMediaMiddleware) Delete(ctx context.Context, id string) (err error)
func (LoggingMediaMiddleware) HardDelete ¶
func (mw LoggingMediaMiddleware) HardDelete(ctx context.Context, id string) (err error)
func (LoggingMediaMiddleware) List ¶
func (mw LoggingMediaMiddleware) List(ctx context.Context, pageToken, pageSize string, filterParams core.FilterParams) (output []*domain.Media, nextToken string, err error)
func (LoggingMediaMiddleware) Restore ¶
func (mw LoggingMediaMiddleware) Restore(ctx context.Context, id string) (err error)
func (LoggingMediaMiddleware) Update ¶
func (mw LoggingMediaMiddleware) Update(ctx context.Context, aggregate *domain.MediaUpdateAggregate) (output *domain.Media, err error)
type LoggingMediaSAGAMiddleware ¶
type LoggingMediaSAGAMiddleware struct { Logger log.Logger Next usecase.MediaSAGAInteractor }
func (LoggingMediaSAGAMiddleware) Done ¶
func (mw LoggingMediaSAGAMiddleware) Done(ctx context.Context, rootID, operation string) (err error)
func (LoggingMediaSAGAMiddleware) Failed ¶
func (mw LoggingMediaSAGAMiddleware) Failed(ctx context.Context, rootID, operation, backup string) (err error)
func (LoggingMediaSAGAMiddleware) RemoveStatic ¶
func (mw LoggingMediaSAGAMiddleware) RemoveStatic(ctx context.Context, rootID []byte) (err error)
func (LoggingMediaSAGAMiddleware) UpdateStatic ¶
func (LoggingMediaSAGAMiddleware) VerifyAuthor ¶
func (mw LoggingMediaSAGAMiddleware) VerifyAuthor(ctx context.Context, rootID string) (err error)
type MetricMediaMiddleware ¶
type MetricMediaMiddleware struct { RequestCount metrics.Counter RequestLatency metrics.Histogram RequestGauge metrics.Gauge Next usecase.MediaInteractor }
func (MetricMediaMiddleware) Create ¶
func (mw MetricMediaMiddleware) Create(ctx context.Context, aggregate *domain.MediaAggregate) (output *domain.Media, err error)
func (MetricMediaMiddleware) Delete ¶
func (mw MetricMediaMiddleware) Delete(ctx context.Context, id string) (err error)
func (MetricMediaMiddleware) HardDelete ¶
func (mw MetricMediaMiddleware) HardDelete(ctx context.Context, id string) (err error)
func (MetricMediaMiddleware) List ¶
func (mw MetricMediaMiddleware) List(ctx context.Context, pageToken, pageSize string, filterParams core.FilterParams) (output []*domain.Media, nextToken string, err error)
func (MetricMediaMiddleware) Restore ¶
func (mw MetricMediaMiddleware) Restore(ctx context.Context, id string) (err error)
func (MetricMediaMiddleware) Update ¶
func (mw MetricMediaMiddleware) Update(ctx context.Context, aggregate *domain.MediaUpdateAggregate) (output *domain.Media, err error)
type MetricMediaSAGAMiddleware ¶
type MetricMediaSAGAMiddleware struct { RequestCount metrics.Counter RequestLatency metrics.Histogram RequestGauge metrics.Gauge Next usecase.MediaSAGAInteractor }
func (MetricMediaSAGAMiddleware) Done ¶
func (mw MetricMediaSAGAMiddleware) Done(ctx context.Context, rootID, operation string) (err error)
func (MetricMediaSAGAMiddleware) Failed ¶
func (mw MetricMediaSAGAMiddleware) Failed(ctx context.Context, rootID, operation, backup string) (err error)
func (MetricMediaSAGAMiddleware) RemoveStatic ¶
func (mw MetricMediaSAGAMiddleware) RemoveStatic(ctx context.Context, rootID []byte) (err error)
func (MetricMediaSAGAMiddleware) UpdateStatic ¶
func (MetricMediaSAGAMiddleware) VerifyAuthor ¶
func (mw MetricMediaSAGAMiddleware) VerifyAuthor(ctx context.Context, rootID string) (err error)
Click to show internal directories.
Click to hide internal directories.