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

func (mw LoggingAuthorMiddleware) Get(ctx context.Context, id string) (output *domain.Author, 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

func (mw LoggingAuthorSAGAMiddleware) UpdatePicture(ctx context.Context, rootID string, urlJSON []byte) (err error)

func (LoggingAuthorSAGAMiddleware) Verify

func (mw LoggingAuthorSAGAMiddleware) Verify(ctx context.Context, service string, authorsJSON []byte) (err error)

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

func (mw MetricAuthorMiddleware) Get(ctx context.Context, id string) (output *domain.Author, 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

func (mw MetricAuthorSAGAMiddleware) UpdatePicture(ctx context.Context, rootID string, urlJSON []byte) (err error)

func (MetricAuthorSAGAMiddleware) Verify

func (mw MetricAuthorSAGAMiddleware) Verify(ctx context.Context, service string, authorsJSON []byte) (err error)

Jump to

Keyboard shortcuts

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