Documentation ¶
Index ¶
- func BasicAuth(username, passwd string) string
- func CanonicalHost(host string) (string, error)
- func HttpJsonGet(requestUrl string, headers map[string]string) (buf []byte, err error)
- func HttpJsonPost(requestUrl string, body []byte, headers map[string]string) (buf []byte, err error)
- func OkResponse() *http.Response
- func ParseBasicAuth(auth string) (username, password string, ok bool)
- func ProxyUnauthorizedResponse() *http.Response
- type RouterRegisterHelper
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalHost ¶
canonicalHost strips port from host if present and returns the canonicalized host name.
func HttpJsonGet ¶
func HttpJsonPost ¶
func OkResponse ¶
func ParseBasicAuth ¶
Types ¶
type RouterRegisterHelper ¶
type RouterRegisterHelper struct { Router *mux.Router AssetsFS http.FileSystem AuthMiddleware mux.MiddlewareFunc }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RouteRegister ¶
func (s *Server) RouteRegister(register func(helper *RouterRegisterHelper))
Click to show internal directories.
Click to hide internal directories.