Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultMiddlewares ¶
func DefaultMiddlewares() []echo.MiddlewareFunc
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) Middleware ¶
func (a *Auth) Middleware(next echo.HandlerFunc) echo.HandlerFunc
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
func NewErrorResponse ¶
func NewErrorResponse(message string) ErrorResponse
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( cfg Config, policy policy.Service, redis *redis.Redis, vaultStorage vault.Storage, client *asynq.Client, inspector *asynq.Inspector, spec plugin.Spec, middlewares []echo.MiddlewareFunc, metrics metrics.PluginServerMetrics, ) *Server
NewServer returns a new server.
func (*Server) SetAuthMiddleware ¶
func (s *Server) SetAuthMiddleware(auth echo.MiddlewareFunc)
func (*Server) VerifierAuthMiddleware ¶
func (s *Server) VerifierAuthMiddleware(next echo.HandlerFunc) echo.HandlerFunc
Click to show internal directories.
Click to hide internal directories.