config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2018 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyslogConfig

type SyslogConfig struct {
	Debug        bool
	Proxy        bool
	Port         int `validate:"nonzero"`
	Region       string
	Profile      string
	Group        string `validate:"nonzero"`
	Stream       string `validate:"nonzero"`
	ClientCaCert string `validate:"nonzero"`
	Cert         string `validate:"nonzero"`
	Key          string `validate:"nonzero"`
}

SyslogConfig syslog server configuration

func (*SyslogConfig) Certificate

func (sc *SyslogConfig) Certificate() (tls.Certificate, error)

Certificate decode and return the certificate

func (*SyslogConfig) ClientCaCertificate added in v1.2.0

func (sc *SyslogConfig) ClientCaCertificate() ([]byte, error)

ClientCaCertificate decode and return the ca certificate

func (*SyslogConfig) Validate

func (sc *SyslogConfig) Validate() error

Validate validate the configuration

Jump to

Keyboard shortcuts

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