Documentation ¶
Index ¶
- type Webapp
- func (webapp *Webapp) AuthenticatedUser(req *http.Request) (*slack.User, error)
- func (webapp *Webapp) GetSession(r *http.Request) *sessions.Session
- func (webapp *Webapp) InitWebServer(bot *bawt.Bot, enabledPlugins []string)
- func (webapp *Webapp) PrivateRouter() *mux.Router
- func (webapp *Webapp) PublicRouter() *mux.Router
- func (webapp *Webapp) RunServer()
- func (webapp *Webapp) SetAuthMiddleware(middleware func(http.Handler) http.Handler)
- func (webapp *Webapp) SetAuthenticatedUserFunc(f func(req *http.Request) (*slack.User, error))
- type WebappConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Webapp ¶
type Webapp struct {
// contains filtered or unexported fields
}
func (*Webapp) AuthenticatedUser ¶
func (*Webapp) InitWebServer ¶
func (*Webapp) PrivateRouter ¶
func (*Webapp) PublicRouter ¶
func (*Webapp) SetAuthMiddleware ¶
SetAuthMiddleware should be called once by a WebServerAuth plugin, if any.
type WebappConfig ¶
Click to show internal directories.
Click to hide internal directories.