middleware

package
v0.0.0-...-4350bb9 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GinContext key

GinContext - Context変換用のキー

Functions

func GinContextFromContext

func GinContextFromContext(ctx context.Context) (*gin.Context, error)

GinContextFromContext - context.Context -> gin.Context

func GinContextToContext

func GinContextToContext(ctx *gin.Context) context.Context

GinContextToContext - gin.Context -> context.Context

func Logging

func Logging() gin.HandlerFunc

Logging - ログの出力

func SendFluent

func SendFluent(tag string, data interface{})

SendFluent - Fluentへログを転送

func SetupFluent

func SetupFluent(host string, port int)

SetupFluent - ログ転送先の設定

Types

This section is empty.

Jump to

Keyboard shortcuts

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