Documentation ¶
Index ¶
- func IsHTTPS(req *http.Request) (bool, error)
- func NewReverseProxyWithAuth(auth *auth.Auth, bundle *bundle.Bundle) (http.Handler, error)
- func NewServer(token tokenpb.TokenServiceServer) (*http.Server, error)
- type ApiData
- type LoginServer
- func (s *LoginServer) Login(rw http.ResponseWriter, req *http.Request)
- func (s *LoginServer) LoginCB(rw http.ResponseWriter, req *http.Request)
- func (s *LoginServer) Logout(rw http.ResponseWriter, req *http.Request)
- func (s *LoginServer) PwdLogin(rw http.ResponseWriter, req *http.Request)
- func (s *LoginServer) ServeHTTP(rw http.ResponseWriter, req *http.Request)
- func (s *LoginServer) UserInfo(rw http.ResponseWriter, req *http.Request)
- type PwdLoginRequest
- type PwdLoginResponse
- type ReverseProxyWithAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReverseProxyWithAuth ¶
Types ¶
type ApiData ¶
type ApiData struct { Success bool `json:"success"` Err interface{} `json:"err"` Data interface{} `json:"data"` }
type LoginServer ¶
type LoginServer struct {
// contains filtered or unexported fields
}
func NewLoginServer ¶
func NewLoginServer(token tokenpb.TokenServiceServer) (*LoginServer, error)
func (*LoginServer) Login ¶
func (s *LoginServer) Login(rw http.ResponseWriter, req *http.Request)
func (*LoginServer) LoginCB ¶
func (s *LoginServer) LoginCB(rw http.ResponseWriter, req *http.Request)
func (*LoginServer) Logout ¶
func (s *LoginServer) Logout(rw http.ResponseWriter, req *http.Request)
func (*LoginServer) PwdLogin ¶
func (s *LoginServer) PwdLogin(rw http.ResponseWriter, req *http.Request)
func (*LoginServer) ServeHTTP ¶
func (s *LoginServer) ServeHTTP(rw http.ResponseWriter, req *http.Request)
func (*LoginServer) UserInfo ¶
func (s *LoginServer) UserInfo(rw http.ResponseWriter, req *http.Request)
type PwdLoginRequest ¶
type PwdLoginResponse ¶
type ReverseProxyWithAuth ¶
type ReverseProxyWithAuth struct {
// contains filtered or unexported fields
}
func (*ReverseProxyWithAuth) ServeHTTP ¶
func (r *ReverseProxyWithAuth) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Directories ¶
Path | Synopsis |
---|---|
api
|
|
Package monitor collect and export openapi metrics
|
Package monitor collect and export openapi metrics |
Click to show internal directories.
Click to hide internal directories.