Documentation ¶
Index ¶
- type Context
- func (c *Context) GetCfgInt(section string, name string) int
- func (c *Context) GetCfgString(section string, name string) string
- func (c *Context) GetConfig() *config.Config
- func (c *Context) GetDb() *db.DB
- func (c *Context) GetDefaultSetInfo() *config.SetInfo
- func (c *Context) GetDigestAuth() *login.DigestAuth
- func (c *Context) GetLog() *zap.Logger
- func (c *Context) Go(handle func())
- func (c *Context) IsInit() bool
- func (c *Context) ReStart()
- func (c *Context) SecretProvider(user string) string
- func (c *Context) UpdateSetInfo(setInfo *config.SetInfo) error
- type DMail
- type IHttpServer
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) GetDefaultSetInfo ¶
func (*Context) GetDigestAuth ¶
func (c *Context) GetDigestAuth() *login.DigestAuth
func (*Context) SecretProvider ¶
type IHttpServer ¶
type IHttpServer interface { Stop() GET(relativePath string, handlers ...web.HandlerFunc) POST(relativePath string, handlers ...web.HandlerFunc) StaticHandle(relativePath string, filepath string) SignIn(relativePath string) Logout(relativePath string) DELETE(relativePath string, handlers ...web.HandlerFunc) PUT(relativePath string, handlers ...web.HandlerFunc) GETAuth(relativePath string, handlers ...web.HandlerFunc) POSTAuth(relativePath string, handlers ...web.HandlerFunc) DELETEAuth(relativePath string, handlers ...web.HandlerFunc) PUTAuth(relativePath string, handlers ...web.HandlerFunc) // contains filtered or unexported methods }
func NewHttpServer ¶
func NewHttpServer(name string) IHttpServer
Click to show internal directories.
Click to hide internal directories.