Documentation
¶
Index ¶
Constants ¶
View Source
const ( AUTH = "auth" UNAUTH = "unauth" DefaultNetwork = "tcp" DefaultAuthPort = 80 DefaultUnauthPort = 8081 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
HTTPRouter *http.ServeMux
HTTPListenPort int
HTTPListenAddr string
HTTPMiddleware []middleware.Interface
HTTPServerReadTimeout time.Duration
HTTPServerWriteTimeout time.Duration
HTTPServerIdleTimeout time.Duration
UnAuthorizedHTTPRouter *http.ServeMux
UnAuthorizedHTTPListenAddr string
UnAuthorizedHTTPListenPort int
UnAuthorizedHTTPMiddleware []middleware.Interface
UnAuthorizedHTTPServerReadTimeout time.Duration
UnAuthorizedHTTPServerWriteTimeout time.Duration
UnAuthorizedHTTPServerIdleTimeout time.Duration
ServerGracefulShutdownTimeout time.Duration
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RegisterTo ¶
Click to show internal directories.
Click to hide internal directories.