Documentation ¶
Index ¶
- Variables
- func GetMetaHandler(looker *monitor.Looker) echo.HandlerFunc
- func GetRequestID(ctx context.Context) string
- func GetStreamHandler(looker *monitor.Looker) echo.HandlerFunc
- func LoggerMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- func NewServer(looker *monitor.Looker) *echo.Echo
- func ReqeuestIDWithContext(ctx context.Context, requestID string) context.Context
- func RequestIDGenerator(next echo.HandlerFunc) echo.HandlerFunc
- type ContextKey
- type Meta
- type Stream
Constants ¶
This section is empty.
Variables ¶
View Source
var (
RequestIDKey = &ContextKey{
Name: "request_id",
}
)
Functions ¶
func GetMetaHandler ¶
func GetMetaHandler(looker *monitor.Looker) echo.HandlerFunc
func GetRequestID ¶
func GetStreamHandler ¶
func GetStreamHandler(looker *monitor.Looker) echo.HandlerFunc
func LoggerMiddleware ¶
func LoggerMiddleware(next echo.HandlerFunc) echo.HandlerFunc
func ReqeuestIDWithContext ¶
func RequestIDGenerator ¶
func RequestIDGenerator(next echo.HandlerFunc) echo.HandlerFunc
Types ¶
type ContextKey ¶
type ContextKey struct {
Name string
}
Click to show internal directories.
Click to hide internal directories.