Documentation ¶
Index ¶
- Variables
- func Run(host, port string)
- type AuthProcessor
- type GinServer
- type RestfulServer
- type SimpleSite
- func (s *SimpleSite) Authorize(ctx context.Context, authorizeUrl string, w http.ResponseWriter, ...)
- func (s *SimpleSite) AuthorizeHtml(authorizeUrl string, w http.ResponseWriter, r *http.Request)
- func (s *SimpleSite) Login(ctx context.Context, authUserPasswordUrl, authorizeHtmlUrl string, ...)
- func (s *SimpleSite) LoginHtml(loginUrl string, w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LoginHtml = `` /* 1443-byte string literal not displayed */ AuthorizeHtml = `` /* 1499-byte string literal not displayed */ )
Functions ¶
Types ¶
type AuthProcessor ¶
type GinServer ¶
type GinServer struct {
// contains filtered or unexported fields
}
func NewGinServer ¶
func NewGinServer(ctx *oauth2.OAuth2Context) *GinServer
type RestfulServer ¶
type RestfulServer struct {
// contains filtered or unexported fields
}
func NewRestfulServer ¶
func NewRestfulServer(ctx *oauth2.OAuth2Context) *RestfulServer
func (*RestfulServer) Handle ¶
func (s *RestfulServer) Handle(c *restful.Container)
func (*RestfulServer) Run ¶
func (s *RestfulServer) Run(host, port string)
func (*RestfulServer) RunWithContainer ¶
func (s *RestfulServer) RunWithContainer(wsContainer *restful.Container, host, port string)
type SimpleSite ¶
type SimpleSite struct {
// contains filtered or unexported fields
}
func NewSimpleSite ¶
func NewSimpleSite(clientId, clientSecret string, cli *http2.HttpClient) *SimpleSite
func (*SimpleSite) Authorize ¶
func (s *SimpleSite) Authorize(ctx context.Context, authorizeUrl string, w http.ResponseWriter, r *http.Request)
func (*SimpleSite) AuthorizeHtml ¶
func (s *SimpleSite) AuthorizeHtml(authorizeUrl string, w http.ResponseWriter, r *http.Request)
func (*SimpleSite) Login ¶
func (s *SimpleSite) Login(ctx context.Context, authUserPasswordUrl, authorizeHtmlUrl string, w http.ResponseWriter, r *http.Request)
func (*SimpleSite) LoginHtml ¶
func (s *SimpleSite) LoginHtml(loginUrl string, w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.