Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UserAgentMiddleware ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) DeleteBackupHandler ¶ added in v1.1.0
func (*Server) ListBackupsHandler ¶
ListBackupsHandler implements the ACB /getbkp
func (*Server) SaveBackupHandler ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(entry *log.Entry, config *ServiceConfig) (*Service, error)
type ServiceConfig ¶
type ServiceConfig struct { Store StoreConfig `yaml:"store" validate:"required"` Servers []config.Config `yaml:"servers"` *logging.Config `yaml:"logging"` }
func (*ServiceConfig) Check ¶
func (c *ServiceConfig) Check() error
type StoreConfig ¶ added in v1.4.0
type StoreConfig struct { Type store.Type `yaml:"type" validate:"required" default:"directory"` Path string `yaml:"path" validate:"required_if=Type directory"` Database *db.Configuration `yaml:"db"` }
func (*StoreConfig) Check ¶ added in v1.4.0
func (c *StoreConfig) Check() error
Click to show internal directories.
Click to hide internal directories.