middleware

package
v0.0.0-...-833cb33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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) Get

func (mw LoggingBlobMiddleware) Get(ctx context.Context, id, service string) (output *domain.Blob, 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
}

func (LoggingBlobSagaMiddleware) Failed

func (mw LoggingBlobSagaMiddleware) Failed(ctx context.Context, rootID, service string, snapshotJSON []byte) (err error)

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) Get

func (mw MetricBlobMiddleware) Get(ctx context.Context, id, service string) (output *domain.Blob, err error)

func (MetricBlobMiddleware) Store

func (mw MetricBlobMiddleware) Store(ctx context.Context, aggregate *domain.BlobAggregate) (output *domain.Blob, err error)

type MetricBlobSagaMiddleware

type MetricBlobSagaMiddleware struct {
	RequestCount   metrics.Counter
	RequestLatency metrics.Histogram
	Next           usecase.BlobSagaInteractor
}

func (MetricBlobSagaMiddleware) Failed

func (mw MetricBlobSagaMiddleware) Failed(ctx context.Context, rootID, service string, snapshotJSON []byte) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL