Documentation ¶
Index ¶
- Constants
- func DbCTX(ctx context.Context) gdb.DB
- func Register(cnf DBConf)
- type AttrType
- type BReq
- type BSConf
- type BootStrap
- func (boot *BootStrap) AllAttribute(r *ghttp.Request) []string
- func (boot *BootStrap) AllowAnonymous(r *ghttp.Request) bool
- func (boot *BootStrap) Attribute(r *ghttp.Request, a AttrType) bool
- func (boot *BootStrap) GetServer() *ghttp.Server
- func (boot *BootStrap) OAI() *goai.OpenApiV3
- func (boot *BootStrap) Run()
- func (boot *BootStrap) Use(h ...func(r *ghttp.Request)) *BootStrap
- func (boot *BootStrap) UseController(prefix string, ctrl ...interface{}) *BootStrap
- func (boot *BootStrap) UseCors() *BootStrap
- func (boot *BootStrap) UseOAI(authKey, title, description, ver string) *BootStrap
- func (boot *BootStrap) UsePublic() *BootStrap
- func (boot *BootStrap) UseStatic() *BootStrap
- func (boot *BootStrap) UseView() *BootStrap
- type DBConf
- type RType
- type Res
Constants ¶
View Source
const ( XIgnoreKey = "x-ignore" //忽略api显示的自定义key XAttrKey = "x-attr" StaticVirtualPath = "/static/files" PublicVirtualPath = "/static/public" ViewPath = "/views" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttrType ¶
type AttrType string
const (
AllowAnonymous AttrType = "allow-anonymous" //允许通过所有验证
)
type BootStrap ¶
type BootStrap struct {
// contains filtered or unexported fields
}
func (*BootStrap) AllAttribute ¶ added in v1.0.4
AllAttribute 属性
func (*BootStrap) AllowAnonymous ¶ added in v1.0.4
AllowAnonymous 允许跳过各种验证
func (*BootStrap) UseController ¶ added in v1.0.4
Click to show internal directories.
Click to hide internal directories.