middlewares

package
v0.0.81 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Etag string

Functions

func AllowCORS

func AllowCORS(h http.Handler) http.Handler

func HttpCache

func HttpCache(h http.Handler) http.Handler

func I18n added in v0.0.7

func I18n(h http.Handler) http.Handler

func I18nStreamClientInterceptor added in v0.0.7

func I18nStreamClientInterceptor() grpc.StreamClientInterceptor

func I18nStreamServerInterceptor added in v0.0.7

func I18nStreamServerInterceptor() grpc.StreamServerInterceptor

func I18nUnaryServerInterceptor added in v0.0.7

func I18nUnaryServerInterceptor() grpc.UnaryServerInterceptor

func In18nUnaryClientInterceptor added in v0.0.7

func In18nUnaryClientInterceptor() grpc.UnaryClientInterceptor

func MustGetLang added in v0.0.7

func MustGetLang(ctx context.Context) string

func RouteLogger

func RouteLogger(h http.Handler) http.Handler

func TracingIgnoreFn

func TracingIgnoreFn(ctx context.Context, fullMethodName string) bool

func TracingWrapper

func TracingWrapper(h http.Handler) http.Handler

Types

type HttpCacheBody

type HttpCacheBody struct {
	Etag string
}

Jump to

Keyboard shortcuts

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