Documentation ¶
Overview ¶
GenToken CheckToken middleware checking token
Index ¶
- type Auth
- type Config
- type Container
- func (c *Container) Auth() *Auth
- func (c *Container) Cache() cache.Cacher
- func (c *Container) Config() *Config
- func (c *Container) Database() *sql.DB
- func (c *Container) GithubOauth2Config() *oauth2.Config
- func (c *Container) ProjectMapper() *dbmapper.ProjectMapper
- func (c *Container) Session(r *http.Request) (*sessions.Session, error)
- func (c *Container) SessionStore() sessions.Store
- func (c *Container) Storage() storage.Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) SecretAppTokenMiddleware ¶
type Config ¶
type Config struct { WWWDir string HTTPAddress string Github struct { ClientID string ClientSecret string AllowedOrganizations []string `xml:",any"` } MySQL struct { DSN string } Cache struct { Strategy string Memcache struct { Hosts []string `xml:",any"` } } Storage struct { Strategy string Local struct { Dir string } } Secret string UploadTmpDir string }
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func NewContainer ¶
func NewContainer() *Container
func (*Container) GithubOauth2Config ¶
func (*Container) ProjectMapper ¶
func (c *Container) ProjectMapper() *dbmapper.ProjectMapper
func (*Container) SessionStore ¶
Click to show internal directories.
Click to hide internal directories.