Documentation ¶
Index ¶
- Variables
- func InitMiddleWare(s *api.Server) http.Handler
- func InitServices()
- func Shutdown() error
- func StartServices(mainHandler http.Handler) error
- type SecurityHandler
- func (sec SecurityHandler) HandleBasicAuth(ctx context.Context, operationName string, t api.BasicAuth) (context.Context, error)
- func (sec SecurityHandler) HandleBearerAuth(ctx context.Context, operationName string, t api.BearerAuth) (context.Context, error)
- func (sec SecurityHandler) HandleTokenCheck(ctx context.Context, operationName string, t api.TokenCheck) (context.Context, error)
- func (sec SecurityHandler) Request(ctx context.Context, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var CleanupTimeout = 10 * time.Second
CleanupTimeout cleanup timeout
View Source
var MaxHeaderSize = flagext.ByteSize(1)
MaxHeaderSize maximum header size
Functions ¶
func InitMiddleWare ¶
InitMiddleWare init middleware steps for CORS allowance and different other middleware options
func StartServices ¶
StartServices start services HTTP and HTTPS
Types ¶
type SecurityHandler ¶
type SecurityHandler struct { }
SecurityHandler security handler
func (SecurityHandler) HandleBasicAuth ¶
func (sec SecurityHandler) HandleBasicAuth(ctx context.Context, operationName string, t api.BasicAuth) (context.Context, error)
HandleBasicAuth handle basic authorisation
func (SecurityHandler) HandleBearerAuth ¶
func (sec SecurityHandler) HandleBearerAuth(ctx context.Context, operationName string, t api.BearerAuth) (context.Context, error)
HandleBearerAuth handler Bearer authentication
func (SecurityHandler) HandleTokenCheck ¶
func (sec SecurityHandler) HandleTokenCheck(ctx context.Context, operationName string, t api.TokenCheck) (context.Context, error)
HandleTokenCheck handler for Token to authentication
Click to show internal directories.
Click to hide internal directories.