Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApiSecretKeyMiddleware ¶
func NewApiSecretKeyMiddleware(apiSecretKey string) gin.HandlerFunc
NewApiSecretKeyMiddleware returns a middleware that checks the api secret key.
func NewLoggerMiddleware ¶ added in v0.2.0
func NewLoggerMiddleware(logger *zerolog.Logger) gin.HandlerFunc
NewLoggerMiddleware returns a middleware that logs the request.
Types ¶
type App ¶
type App struct { Config *Config Server *http.Server Engine *gin.Engine GitHubOAuthConfig *oauth2.Config AuthRequestManager *AuthRequestManager Logger *zerolog.Logger }
App the Traefik GitHub OAuth server application.
func NewDefaultApp ¶
func NewDefaultApp() *App
type AuthRequestManager ¶
type AuthRequestManager struct {
// contains filtered or unexported fields
}
func NewAuthRequestManager ¶
func NewAuthRequestManager(cache *cache.Cache) *AuthRequestManager
func (*AuthRequestManager) Get ¶
func (m *AuthRequestManager) Get(rid string) (*model.AuthRequest, bool)
func (*AuthRequestManager) Insert ¶
func (m *AuthRequestManager) Insert(aq *model.AuthRequest) string
func (*AuthRequestManager) Pop ¶
func (m *AuthRequestManager) Pop(rid string) (*model.AuthRequest, bool)
Click to show internal directories.
Click to hide internal directories.