Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultRedirectRequestTimeout = 1000 * time.Millisecond
DefaultRedirectRequestTimeout default timeout for every redirect request
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct { ListenerInterface // contains filtered or unexported fields }
API server model
func NewAPIServer ¶
NewAPIServer creates a new API server instance
type AuthMiddlewareHandler ¶
type AuthMiddlewareHandler struct {
// contains filtered or unexported fields
}
AuthMiddlewareHandler model
func (AuthMiddlewareHandler) ServeHTTP ¶
func (amh AuthMiddlewareHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Claims ¶
type Claims struct { Username string `json:"username"` jwt.StandardClaims }
Claims model
type Credentials ¶
Credentials model
type HTTP ¶
type HTTP struct { ListenerInterface // contains filtered or unexported fields }
HTTP server model
func NewHTTPServer ¶
func NewHTTPServer(listener string, certManager *certificate.Manager) *HTTP
NewHTTPServer creates a new instance
type HTTPS ¶
type HTTPS struct { ListenerInterface // contains filtered or unexported fields }
HTTPS server model
func NewHTTPSServer ¶
func NewHTTPSServer(listener string, certManager *certificate.Manager) *HTTPS
NewHTTPSServer creates a new instance
type ListenerInterface ¶
type ListenerInterface interface {
Listen() error
}
ListenerInterface contains the main server functions
Click to show internal directories.
Click to hide internal directories.