Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultAuthHeader = "Authorization" DefaultAuthHeaderType = "Bearer" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
type Auth struct {
middleware.NopMiddleware
// contains filtered or unexported fields
}
func (*Auth) Http ¶
func (a *Auth) Http() echo.MiddlewareFunc
func (*Auth) Stream ¶
func (a *Auth) Stream() grpc.StreamServerInterceptor
func (*Auth) Unary ¶
func (a *Auth) Unary() grpc.UnaryServerInterceptor
type AuthOpt ¶
type AuthOpt func(*AuthOpts)
func AuthWithHttpTokenGetter ¶
func AuthWithHttpTokenGetter(getter HttpTokenGetter) AuthOpt
func AuthWithTokens ¶
type AuthOpts ¶
type AuthOpts struct {
Tokens []string
HttpTokenGetter HttpTokenGetter
}
type Gzip ¶
type Gzip struct {
middleware.NopMiddleware
}
func (*Gzip) Http ¶
func (*Gzip) Http() echo.MiddlewareFunc
type Logger ¶
type Logger struct {
middleware.NopMiddleware
}
func (*Logger) Http ¶
func (*Logger) Http() echo.MiddlewareFunc
Click to show internal directories.
Click to hide internal directories.