Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Config
 - type DashboardConfig
 - type DatabaseConfig
 - type IdentityAuthConfig
 - type LogConfig
 - type MQTTConfig
 - type MapConfig
 - type OidcClient
 - type OidcProvider
 - type OidcPublicKey
 - type RoutingConfig
 - type RoutingOrsConfig
 - type RoutingOrsOptimizationConfig
 - type RoutingValhallaConfig
 - type RoutingValhallaOptimizationConfig
 - type RoutingVroomConfig
 - type S3Config
 - type S3ServiceConfig
 - type ServerConfig
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
	Server       ServerConfig       `mapstructure:"server"`
	Dashboard    DashboardConfig    `mapstructure:"dashboard"`
	Routing      RoutingConfig      `mapstructure:"routing"`
	S3           S3Config           `mapstructure:"s3"`
	MQTT         MQTTConfig         `mapstructure:"mqtt"`
	IdentityAuth IdentityAuthConfig `mapstructure:"auth"`
	Map          MapConfig          `mapstructure:"map"`
}
    func InitConfig ¶
type DashboardConfig ¶
type DashboardConfig struct {
	Title string `mapstructure:"title"`
}
    type DatabaseConfig ¶
type IdentityAuthConfig ¶
type IdentityAuthConfig struct {
	Enable       bool         `mapstructure:"enable"`
	OidcProvider OidcProvider `mapstructure:"oidc_provider"`
}
    type MQTTConfig ¶
type OidcClient ¶
type OidcProvider ¶
type OidcProvider struct {
	BaseURL    string        `mapstructure:"base_url"`
	DomainName string        `mapstructure:"domain_name"`
	AuthURL    string        `mapstructure:"auth_url"`
	TokenURL   string        `mapstructure:"token_url"`
	PublicKey  OidcPublicKey `mapstructure:"public_key"`
	Frontend   OidcClient    `mapstructure:"frontend"`
	Backend    OidcClient    `mapstructure:"backend"`
}
    type OidcPublicKey ¶
type OidcPublicKey struct {
	StaticKey string `mapstructure:"static"`
}
    type RoutingConfig ¶
type RoutingConfig struct {
	Enable        bool                  `mapstructure:"enable"`
	StartPoint    []float64             `mapstructure:"start_point"`
	EndPoint      []float64             `mapstructure:"end_point"`
	WateringPoint []float64             `mapstructure:"watering_point"`
	Ors           RoutingOrsConfig      `mapstructure:"ors"`
	Valhalla      RoutingValhallaConfig `mapstructure:"valhalla"`
}
    type RoutingOrsConfig ¶
type RoutingOrsConfig struct {
	Host         string                       `mapstructure:"host"`
	Optimization RoutingOrsOptimizationConfig `mapstructure:"optimization"`
}
    type RoutingOrsOptimizationConfig ¶
type RoutingOrsOptimizationConfig struct {
	Vroom RoutingVroomConfig `mapstructure:"vroom"`
}
    type RoutingValhallaConfig ¶
type RoutingValhallaConfig struct {
	Host         string                            `mapstructure:"host"`
	Optimization RoutingValhallaOptimizationConfig `mapstructure:"optimization"`
}
    type RoutingValhallaOptimizationConfig ¶
type RoutingValhallaOptimizationConfig struct {
	Vroom RoutingVroomConfig `mapstructure:"vroom"`
}
    type RoutingVroomConfig ¶
type RoutingVroomConfig struct {
	Host string `mapstructure:"host"`
}
    type S3Config ¶
type S3Config struct {
	Enable   bool            `mapstructure:"enable"`
	Endpoint string          `mapstructure:"endpoint"`
	Region   string          `mapstructure:"region"`
	RouteGpx S3ServiceConfig `mapstructure:"route-gpx"`
	UseSSL   bool            `mapstructure:"use_ssl"`
}
    type S3ServiceConfig ¶
type ServerConfig ¶
type ServerConfig struct {
	Logs        LogConfig      `mapstructure:"logs"`
	Database    DatabaseConfig `mapstructure:"database"`
	Port        int            `mapstructure:"port"`
	Development bool           `mapstructure:"development"`
	AppURL      string         `mapstructure:"app_url"`
}
     Click to show internal directories. 
   Click to hide internal directories.