Documentation ¶
Index ¶
- type LoggingBlobMiddleware
- func (mw LoggingBlobMiddleware) Delete(ctx context.Context, id, service string) (err error)
- func (mw LoggingBlobMiddleware) Get(ctx context.Context, id, service string) (output *domain.Blob, err error)
- func (mw LoggingBlobMiddleware) Store(ctx context.Context, aggregate *domain.BlobAggregate) (output *domain.Blob, err error)
- type LoggingBlobSagaMiddleware
- type MetricBlobMiddleware
- func (mw MetricBlobMiddleware) Delete(ctx context.Context, id, service string) (err error)
- func (mw MetricBlobMiddleware) Get(ctx context.Context, id, service string) (output *domain.Blob, err error)
- func (mw MetricBlobMiddleware) Store(ctx context.Context, aggregate *domain.BlobAggregate) (output *domain.Blob, err error)
- type MetricBlobSagaMiddleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggingBlobMiddleware ¶
type LoggingBlobMiddleware struct { Logger log.Logger Next usecase.BlobInteractor }
func (LoggingBlobMiddleware) Delete ¶
func (mw LoggingBlobMiddleware) Delete(ctx context.Context, id, service string) (err error)
func (LoggingBlobMiddleware) Store ¶
func (mw LoggingBlobMiddleware) Store(ctx context.Context, aggregate *domain.BlobAggregate) (output *domain.Blob, err error)
type LoggingBlobSagaMiddleware ¶
type LoggingBlobSagaMiddleware struct { Logger log.Logger Next usecase.BlobSagaInteractor }
type MetricBlobMiddleware ¶
type MetricBlobMiddleware struct { RequestCount metrics.Counter RequestLatency metrics.Histogram Next usecase.BlobInteractor }
func (MetricBlobMiddleware) Delete ¶
func (mw MetricBlobMiddleware) Delete(ctx context.Context, id, service string) (err error)
func (MetricBlobMiddleware) Store ¶
func (mw MetricBlobMiddleware) Store(ctx context.Context, aggregate *domain.BlobAggregate) (output *domain.Blob, err error)
type MetricBlobSagaMiddleware ¶
Click to show internal directories.
Click to hide internal directories.