Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) ChooseRouter ¶
ChooseRouter 选择Router
func (*App) Infrastructure ¶
func (app *App) Infrastructure() *infrastructure.Infrastructure
Infrastructure 获取Infrastructure实例
type Config ¶
type Config struct { ApiConfig `json:"api" yaml:"api"` InfrastructureConfig `json:"infrastructure" yaml:"infrastructure"` }
func LoadFromJson ¶
func LoadFromJsonFile ¶
func LoadFromYaml ¶
func LoadFromYamlFile ¶
type InfoIDField ¶
type InfoIDField struct {
ID string `json:"id" sqlresult:"column:id"`
}
type InfoTenantIDField ¶
type InfoTenantIDField struct {
TenantID string `json:"tenantId" sqlresult:"column:tenant_id"`
}
type InfoTimeFields ¶
type InfoUserIDFields ¶
type InfrastructureConfig ¶
type InfrastructureConfig struct { Database infrastructure.DatabaseConfig `json:"database" yaml:"database"` Cache infrastructure.CacheConfig `json:"cache" yaml:"cache"` }
Click to show internal directories.
Click to hide internal directories.