Documentation
¶
Index ¶
Constants ¶
View Source
const ( // TypeGormModel - type gorm model gen TypeGormModel = "gorm_model" // TypeBeegoModel - type beego model gen TypeBeegoModel = "beego_model" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Package string `json:"package"`
GenPath string `json:"gen_path"`
AllInOne bool `json:"all_in_one"`
Items []Item `json:"items"`
MaxIdleConns int64 `json:"max_idle_conns"`
MaxOpenConns int64 `json:"set_max_open_conns"`
}
Config - init config
type Generator ¶
type Generator interface {
// Gen - gen file
Gen() error
// start gc routine based on config settings.
StartAndGC(config Config) error
}
Generator interface contains all behaviors for model generator adapter.
Click to show internal directories.
Click to hide internal directories.