Versions in this module Expand all Collapse all v0 v0.1.1 Nov 22, 2021 Changes in this version + const ComparePattern + const CompareSign + const CompareSignToken + const HTTP_STATUS + const VarPattern + var AnnotationList []Annotation + var Empty = &struct{} + func Convert(handler interface{}) gin.HandlerFunc + func DBMap(columns []string, rows *sql.Rows) ([]interface{}, error) + func Error(err error, msg ...string) + func ErrorHandler() gin.HandlerFunc + func ExecExpr(expr Expr, data map[string]interface{}) (string, error) + func GenTplFunc(path string) + func GetConfigValue(m UserConfig, prefix []string, index int) interface + func HandleFairing(responder Responder, ctx *gin.Context) interface + func IsAnnotation(t reflect.Type) bool + func IsComparableExpr(expr string) bool + func IsNumeric(val interface{}) bool + func LoadConfigFile() []byte + func Task(f TaskFunc, cb func(), params ...interface{}) + func Throw(err string, code int, context *gin.Context) + type Annotation interface + SetTag func(tag reflect.StructTag) + String func() string + type Bean interface + Name func() string + type ComparableExpr string + type Expr string + type Fairing interface + OnRequest func(*gin.Context) error + OnResponse func(result interface{}) (interface{}, error) + type FairingHandler struct + func NewFairingHandler() *FairingHandler + func (this *FairingHandler) AddFairing(f ...Fairing) + type GPA interface + DB func() *sql.DB + type GPAUtil struct + GDB GPA + func NewGPAUtil() *GPAUtil + type Goft struct + func Ignite(ginMiddlewares ...gin.HandlerFunc) *Goft + func (this *Goft) Attach(f ...Fairing) *Goft + func (this *Goft) Beans(beans ...Bean) *Goft + func (this *Goft) Config(cfgs ...interface{}) *Goft + func (this *Goft) Handle(httpMethod, relativePath string, handler interface{}) *Goft + func (this *Goft) HandleWithFairing(httpMethod, relativePath string, handler interface{}, fairings ...Fairing) *Goft + func (this *Goft) Launch() + func (this *Goft) LaunchWithPort(port int) + func (this *Goft) Mount(group string, classes ...IClass) *Goft + func (this *Goft) Task(cron string, expr interface{}) *Goft + type GoftTree struct + func NewGoftTree() *GoftTree + type GormAdapter struct + func NewGormAdapter() *GormAdapter + func (this *GormAdapter) Name() string + type IClass interface + Build func(goft *Goft) + Name func() string + type Json interface + type JsonResponder func(*gin.Context) Json + func (this JsonResponder) RespondTo() gin.HandlerFunc + type Model interface + String func() string + type Models string + func MakeModels(v interface{}) Models + type Param struct + Key string + Value string + type Params []Param + func (ps Params) ByName(name string) (va string) + func (ps Params) Get(name string) (string, bool) + type Query interface + Args func() []interface{} + First func() bool + Get func() interface{} + Key func() string + Mapping func() map[string]string + Sql func() string + type Responder interface + RespondTo func() gin.HandlerFunc + type RouteInfo struct + Handler string + HandlerFunc interface{} + Method string + Path string + type RoutesInfo []RouteInfo + type ServerConfig struct + Html string + Name string + Port int32 + type SimpleExpr string + type SimpleQuery string + func (this SimpleQuery) Args() []interface{} + func (this SimpleQuery) First() bool + func (this SimpleQuery) Get() interface{} + func (this SimpleQuery) Key() string + func (this SimpleQuery) Mapping() map[string]string + func (this SimpleQuery) Sql() string + func (this SimpleQuery) WithArgs(args ...interface{}) *SimpleQueryWithArgs + func (this SimpleQuery) WithFirst() *SimpleQueryWithArgs + func (this SimpleQuery) WithKey(key string) *SimpleQueryWithArgs + func (this SimpleQuery) WithMapping(mapping map[string]string) *SimpleQueryWithArgs + type SimpleQueryWithArgs struct + func NewSimpleQueryWithArgs(sql string, args []interface{}) *SimpleQueryWithArgs + func NewSimpleQueryWithFetchFirst(sql string) *SimpleQueryWithArgs + func NewSimpleQueryWithKey(sql string, key string) *SimpleQueryWithArgs + func NewSimpleQueryWithMapping(sql string, mapping map[string]string) *SimpleQueryWithArgs + func (this *SimpleQueryWithArgs) Args() []interface{} + func (this *SimpleQueryWithArgs) First() bool + func (this *SimpleQueryWithArgs) Get() interface{} + func (this *SimpleQueryWithArgs) Key() string + func (this *SimpleQueryWithArgs) Mapping() map[string]string + func (this *SimpleQueryWithArgs) Sql() string + func (this *SimpleQueryWithArgs) WithFirst() *SimpleQueryWithArgs + func (this *SimpleQueryWithArgs) WithKey(key string) *SimpleQueryWithArgs + func (this *SimpleQueryWithArgs) WithMapping(mapping map[string]string) *SimpleQueryWithArgs + type SqlQueryResponder func(*gin.Context) Query + func (this SqlQueryResponder) RespondTo() gin.HandlerFunc + type SqlResponder func(*gin.Context) SimpleQuery + func (this SqlResponder) RespondTo() gin.HandlerFunc + type StringResponder func(*gin.Context) string + func (this StringResponder) RespondTo() gin.HandlerFunc + type SysConfig struct + Config UserConfig + Server *ServerConfig + func InitConfig() *SysConfig + func NewSysConfig() *SysConfig + func (this *SysConfig) Name() string + type TaskExecutor struct + func NewTaskExecutor(f TaskFunc, p []interface{}, callback func()) *TaskExecutor + func (this *TaskExecutor) Exec() + type TaskFunc func(params ...interface{}) + type TreeNode struct + type TreeRouter struct + func NewTreeRouter() *TreeRouter + type UserConfig map[interface{}]interface + type Value struct + func (this *Value) SetTag(tag reflect.StructTag) + func (this *Value) String() string + type View string + type ViewResponder func(*gin.Context) View + func (this ViewResponder) RespondTo() gin.HandlerFunc + type Void struct + type VoidResponder func(ctx *gin.Context) Void + func (this VoidResponder) RespondTo() gin.HandlerFunc