Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication struct {
// contains filtered or unexported fields
}
func (*Authentication) CheckJWTToken ¶
func (a *Authentication) CheckJWTToken() echo.MiddlewareFunc
func (*Authentication) CheckRedisToken ¶
func (a *Authentication) CheckRedisToken() echo.MiddlewareFunc
func (*Authentication) Init ¶
func (a *Authentication) Init(ctx context.Context) (*gobs.ServiceLifeCycle, error)
type Authorization ¶
type Authorization struct {
// contains filtered or unexported fields
}
func (*Authorization) Init ¶
func (a *Authorization) Init(ctx context.Context) (*gobs.ServiceLifeCycle, error)
func (*Authorization) VerifyPermission ¶
func (a *Authorization) VerifyPermission(permissions ...string) echo.MiddlewareFunc
type HTTPErrorHandling ¶
type HTTPErrorHandling struct {
// contains filtered or unexported fields
}
func (*HTTPErrorHandling) CatchErr ¶
func (r *HTTPErrorHandling) CatchErr(err error, c echo.Context)
func (*HTTPErrorHandling) Init ¶
func (r *HTTPErrorHandling) Init(ctx context.Context) (*gobs.ServiceLifeCycle, error)
type JWTSecret ¶
type JWTSecret struct {
Secret string `env:"JWT_SECRET" mapstructure:"JWT_SECRET" envDefault:"mysecretjwt"`
}
type MWLogger ¶
type MWLogger struct {
// contains filtered or unexported fields
}
func (*MWLogger) Handler ¶
func (l *MWLogger) Handler() echo.MiddlewareFunc
func (*MWLogger) Log ¶
func (l *MWLogger) Log(c echo.Context, v middleware.RequestLoggerValues) error
Click to show internal directories.
Click to hide internal directories.