middleware

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(c *container.Container) []grpc.ServerOption

func UnaryErrorHandler

func UnaryErrorHandler(ut ut.Translator, errorLogger *log.Logger) grpc.UnaryServerInterceptor

Types

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message,omitempty"`
}

type ValidationErrorResponse

type ValidationErrorResponse struct {
	Message string              `json:"message,omitempty"`
	Errors  map[string][]string `json:"errors,omitempty"`
}

Jump to

Keyboard shortcuts

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