Documentation ¶
Index ¶
- Constants
- type Config
- type Database
- type DatabaseImpl
- func (c *DatabaseImpl) AddParams(params ...string)
- func (c *DatabaseImpl) GetAddress() string
- func (c *DatabaseImpl) GetDBName() string
- func (c *DatabaseImpl) GetDSN() string
- func (c *DatabaseImpl) GetDialect() string
- func (c *DatabaseImpl) GetParams() []string
- func (c *DatabaseImpl) GetPassword() string
- func (c *DatabaseImpl) GetPort() uint16
- func (c *DatabaseImpl) GetUser() string
- type Http
- type HttpImpl
- type Impl
- func (c *Impl) GetDatabaseConfig() Database
- func (c *Impl) GetDescription() string
- func (c *Impl) GetEnvironment() string
- func (c *Impl) GetHttpConfig() Http
- func (c *Impl) GetSiteName() string
- func (c *Impl) GetTemplateExtension() string
- func (c *Impl) GetTemplatePath() string
- func (c *Impl) GetTitle() string
- func (c *Impl) IsDev() bool
- func (c *Impl) SetTitle(title string)
Constants ¶
View Source
const (
Dev = "dev"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type DatabaseImpl ¶
type DatabaseImpl struct { Dialect string `yaml:"dialect"` User string `yaml:"user"` Password string `yaml:"password"` Address string `yaml:"address"` Port uint16 `yaml:"port"` DBName string `yaml:"db_name"` Params []string `yaml:"params"` }
func (*DatabaseImpl) AddParams ¶
func (c *DatabaseImpl) AddParams(params ...string)
func (*DatabaseImpl) GetAddress ¶
func (c *DatabaseImpl) GetAddress() string
func (*DatabaseImpl) GetDBName ¶
func (c *DatabaseImpl) GetDBName() string
func (*DatabaseImpl) GetDSN ¶
func (c *DatabaseImpl) GetDSN() string
func (*DatabaseImpl) GetDialect ¶
func (c *DatabaseImpl) GetDialect() string
func (*DatabaseImpl) GetParams ¶
func (c *DatabaseImpl) GetParams() []string
func (*DatabaseImpl) GetPassword ¶
func (c *DatabaseImpl) GetPassword() string
func (*DatabaseImpl) GetPort ¶
func (c *DatabaseImpl) GetPort() uint16
func (*DatabaseImpl) GetUser ¶
func (c *DatabaseImpl) GetUser() string
type HttpImpl ¶
type HttpImpl struct { Addr string `yaml:"addr"` ReadTimeout time.Duration `yaml:"read_timeout"` WriteTimeout time.Duration `yaml:"write_timeout"` StaticPath string `yaml:"static_path"` }
func (*HttpImpl) GetReadTimeout ¶
func (*HttpImpl) GetStaticPath ¶
func (*HttpImpl) GetWriteTimeout ¶
type Impl ¶
type Impl struct { SiteName string `yaml:"site_name"` Description string `yaml:"description"` Title string `yaml:"title"` Environment string `yaml:"environment"` TemplatePath string `yaml:"template_path"` TemplateExtension string `yaml:"template_extension"` Http *HttpImpl `yaml:"http_config"` Database *DatabaseImpl `yaml:"database_config"` }
func (*Impl) GetDatabaseConfig ¶
func (*Impl) GetDescription ¶
func (*Impl) GetEnvironment ¶
func (*Impl) GetHttpConfig ¶
func (*Impl) GetSiteName ¶
func (*Impl) GetTemplateExtension ¶
func (*Impl) GetTemplatePath ¶
Click to show internal directories.
Click to hide internal directories.