Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultRetryCount = 3 DefaultRetryDelay = time.Second * 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Database ¶
type Database struct { Driver string `json:"driver" yaml:"driver" default:"sqlite"` DSN string `json:"dsn" yaml:"dsn" default:"db.sqlite"` MaxIdleConn int `json:"maxIdleConn" yaml:"maxIdleConn" default:"10"` MaxOpenConn int `json:"maxOpenConn" yaml:"maxOpenConn" default:"40"` ConnMaxLift time.Duration `json:"connMaxLift" yaml:"connMaxLift" default:"0s"` ConnMaxIdle time.Duration `json:"connMaxIdle" yaml:"connMaxIdle" default:"0s"` }
type OAuthConfig ¶
type Server ¶
type Server struct { BaseURL string `json:"baseURL" yaml:"baseURL" default:"http://localhost"` Port int `json:"port" yaml:"port" default:"80"` Prefix string `json:"prefix" yaml:"prefix" default:"/api/v1"` Debug bool `json:"debug" yaml:"debug" default:"false"` GracePeriod int `json:"gracePeriod" yaml:"gracePeriod" default:"30"` PluginPath string `json:"pluginPath" yaml:"pluginPath" default:"./_plugins"` }
Click to show internal directories.
Click to hide internal directories.