Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTLSConfiguration ¶
func CreateTLSConfiguration(serverCertPath string, serverKeyPath string, clientCARootPath string, clientAuthenticationType string) (*tls.Config, error)
CreateTLSConfiguration process the paths to certificate and the client authentication type based on the values on the function parameter, then create a *tls.Config struct that can be passed to multiple stuff. Some of them being the HTTP server or gRPC server.
Please do not insert empty string values for each function parameter. You will get an error instead.
Types ¶
type Configuration ¶
type Configuration struct { ListenAddress string `json:"listen_address" yaml:"listen_address"` TLS struct { CertificateAuthorityPath string `json:"certificate_authority_path" yaml:"certificate_authority_path"` ServerCertificatePath string `json:"server_certificate_path" yaml:"server_certificate_path"` ServerKeyPath string `json:"server_key_path" yaml:"server_key_path"` ClientAuthenticationType string `json:"client_authentication_type" yaml:"client_authentication_type"` } `json:"tls" yaml:"tls"` SentryDsn string `json:"sentry_dsn" yaml:"sentry_dsn"` Debug bool `json:"debug" yaml:"debug"` }
func ParseConfiguration ¶
func ParseConfiguration(filePath string) (*Configuration, error)
Directories
¶
Path | Synopsis |
---|---|
Package sentry is a heavily modified Go SDK for Sentry dedicated just for Delightful Developer Metrics (DDM), or at least that's the name when I was working on this program.
|
Package sentry is a heavily modified Go SDK for Sentry dedicated just for Delightful Developer Metrics (DDM), or at least that's the name when I was working on this program. |
Click to show internal directories.
Click to hide internal directories.