Documentation ¶ Index ¶ type Config func LoadConfig(confPath *string) (*Config, error) type TLSConfig Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Destination string `json:"destination"` SyncInterval string `json:"syncInterval"` Source string `json:"source"` TLS TLSConfig `json:"tls"` } func LoadConfig ¶ func LoadConfig(confPath *string) (*Config, error) loads service configuration from a file at the given path type TLSConfig ¶ type TLSConfig struct { // CA is the Certificate of CA CA string `json:"ca"` // key is the private key of the client Key string `json:"key"` // SourceHDSCA is the url of source HDS's CA. Cert string `json:"cert"` } Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.