Documentation ¶
Index ¶
- Variables
- func Convert(handler interface{}) gin.HandlerFunc
- func Error(err error, msg ...string)
- func ErrorHandler() gin.HandlerFunc
- func GetConfigValue(m UserConfig, prefix []string, index int) interface{}
- func IsAnnotation(t reflect.Type) bool
- func LoadConfigFile() []byte
- type Annotation
- type BeanFactory
- type Fairing
- type Goft
- type GormAdapter
- type IClass
- type Model
- type ModelResponder
- type Models
- type ModelsResponder
- type Responder
- type ServerConfig
- type StringResponder
- type SysConfig
- type UserConfig
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var AnnotationList []Annotation
View Source
var ResponderList []Responder
Functions ¶
func Convert ¶
func Convert(handler interface{}) gin.HandlerFunc
func ErrorHandler ¶
func ErrorHandler() gin.HandlerFunc
func GetConfigValue ¶
func GetConfigValue(m UserConfig, prefix []string, index int) interface{}
func LoadConfigFile ¶
func LoadConfigFile() []byte
Types ¶
type Annotation ¶
type BeanFactory ¶
type BeanFactory struct {
// contains filtered or unexported fields
}
func NewBeanFactory ¶
func NewBeanFactory() *BeanFactory
func (*BeanFactory) Inject ¶
func (this *BeanFactory) Inject(object interface{})
type GormAdapter ¶
func NewGormAdapter ¶
func NewGormAdapter() *GormAdapter
type ModelResponder ¶
切片返回
func (ModelResponder) RespondTo ¶
func (this ModelResponder) RespondTo() gin.HandlerFunc
type ModelsResponder ¶
json返回
func (ModelsResponder) RespondTo ¶
func (this ModelsResponder) RespondTo() gin.HandlerFunc
type Responder ¶
type Responder interface {
RespondTo() gin.HandlerFunc
}
type ServerConfig ¶
type StringResponder ¶
字符串返回
func (StringResponder) RespondTo ¶
func (this StringResponder) RespondTo() gin.HandlerFunc
type SysConfig ¶
type SysConfig struct { Server *ServerConfig `yaml:"Server"` Config UserConfig }
func InitConfig ¶
func InitConfig() *SysConfig
func NewSysConfig ¶
func NewSysConfig() *SysConfig
type UserConfig ¶
type UserConfig map[string]interface{}
Click to show internal directories.
Click to hide internal directories.