common

package
v0.0.0-...-a8f2ceb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL