config

package
v0.1.8-1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: Apache-2.0 Imports: 9 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 {
	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

func (cfg *Config) ConfigSetUp(path string) error

ConfigSetUp unmarshalls a json file specified by the input parameter into the config object

Jump to

Keyboard shortcuts

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