Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigPostgresqlV1 ¶
type ConfigPostgresqlV1 struct { Host string `json:"host" validate:"required"` Port int `json:"port" validate:"required,min=1,max=65535"` User string `json:"user" validate:"required"` Db string `json:"db" validate:"required"` Password string `json:"password" validate:"required"` }
структура для postgresql драйвера
type ConfigSqliteV1 ¶
type ConfigSqliteV1 struct {
Path string `json:"path" validate:"required"`
}
структура для sqlite3 драйвера
type ConfigV1 ¶
type ConfigV1 struct { Sqlite *ConfigSqliteV1 `json:"sqlite" validate:"omitempty"` Postgresql *ConfigPostgresqlV1 `json:"postgresql" validate:"omitempty"` }
стркуктура для кофигурации БД
Click to show internal directories.
Click to hide internal directories.