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: 8 Imported by: 0

Documentation

Index

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

func (mw LoggingMediaMiddleware) Get(ctx context.Context, id string) (output *domain.Media, 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 (mw LoggingMediaSAGAMiddleware) UpdateStatic(ctx context.Context, rootID string, urlJSON []byte) (err error)

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

func (mw MetricMediaMiddleware) Get(ctx context.Context, id string) (output *domain.Media, 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 (mw MetricMediaSAGAMiddleware) UpdateStatic(ctx context.Context, rootID string, urlJSON []byte) (err error)

func (MetricMediaSAGAMiddleware) VerifyAuthor

func (mw MetricMediaSAGAMiddleware) VerifyAuthor(ctx context.Context, rootID string) (err error)

Jump to

Keyboard shortcuts

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