Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ServicePort int `json:"service_port" required:"true"`
MongoHost string `json:"mongo_host" required:"true"`
MongoDB string `json:"mongo_db" required:"true"`
CertificateAuthorities string `json:"certificate_authorities" required:"true"`
Certificate string `json:"certificate" required:"true"`
CertificateKey string `json:"certificate_key" required:"true"`
ServiceToken string `json:"service_token" required:"true"`
SupportedAuthTypes []string `json:"supported_auth_types" required:"true"`
SupportedAuthMethods []string `json:"supported_auth_methods" required:"true"`
SupportedServiceTypes []string `json:"supported_service_types" required:"true"`
VerifySSL bool `json:"verify_ssl"`
TrustUnknownCAs bool `json:"trust_unknown_cas"`
VerifyCertificate bool `json:"verify_certificate"`
ServiceTypesPaths map[string]string `json:"service_types_paths" required:"true"`
ServiceTypesRetrievalFields map[string]string `json:"service_types_retrieval_fields" required:"true"`
SyslogEnabled bool `json:"syslog_enabled"`
ClientCertHostVerification bool `json:"client_cert_host_verification"`
}
func (*Config) ClientAuthPolicy ¶
func (cfg *Config) ClientAuthPolicy() tls.ClientAuthType
ClintAuthPolicy determines, based on the given configuration what client authentication policy should the server follow
func (*Config) ConfigSetUp ¶
ConfigSetUp unmarshalls a json file specified by the input parameter into the config object
Click to show internal directories.
Click to hide internal directories.