Documentation
¶
Index ¶
- func Initialize(services map[string]Serve) error
- func InitializeCustomConfig(services map[string]Serve, configuration *Configuration) error
- type Configuration
- type DavPaths
- type EmailCredentials
- type Log
- type LogLevel
- type OrderRefer
- type RestMirror
- type Serve
- type ServiceArguments
- type ServiceResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeCustomConfig ¶
func InitializeCustomConfig(services map[string]Serve, configuration *Configuration) error
Initializes the whole context with a custom configuration
Types ¶
type Configuration ¶
type Configuration struct { Authentication bool `json:"authentication"` DavPaths DavPaths `json:"davPaths"` GeneratedDirectory string `json:"generatedDirectory"` Host string `json:"host"` JWTExpirationMinutes int `json:"jwtExpirationMinutes"` JWTSecret string `json:"jwtSecret"` SQLiteFile string `json:"sqliteFile"` Mail EmailCredentials `json:"mail"` OrderRefer OrderRefer `json:"orderRefer"` OrderRetrievers []*mail.Address `json:"orderRetrievers"` RestMirror RestMirror `json:"restMirror"` TemplateInterval uint `json:"templateInterval"` }
Struct for the configuration of the application.
var Conf Configuration
type DavPaths ¶
type DavPaths struct { PayedBills string `json:"payedBills"` UnpayedBills string `json:"unpayedBills"` Scores string `json:"scores"` }
Struct for all dav related paths
type EmailCredentials ¶
type EmailCredentials struct { Username string `json:"username"` Password string `json:"password"` SMTPHost string `json:"smtpHost"` Address *mail.Address `json:"address"` }
Struct for SMTP credentials which will be used for sending mails.
type OrderRefer ¶
type OrderRefer struct { Host string `json:"host"` Fail string `json:"fail"` Success string `json:"success"` }
Struct for refers after order
type RestMirror ¶
type RestMirror struct { Interval uint `json:"interval"` CategoriesPath string `json:"categoriesPath"` CategoriesFlatPath string `json:"categoriesFlatPath"` ScoresPath string `json:"scoresPath"` }
section for the rest mirror
type Serve ¶
type Serve func(args ServiceArguments) (ServiceResult, error)
Represents a service instance.
type ServiceArguments ¶
Arguments to a service.
Click to show internal directories.
Click to hide internal directories.