Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- func (c Config) Listener() string
- func (c Config) MTLSEnabled() bool
- func (c Config) MaxProcs() int
- func (c Config) RecordFile() (*os.File, error)
- func (c *Config) RecordFormatter() formatter.RecordsFormatter
- func (c Config) Recording() bool
- func (c Config) TLSEnabled() bool
- func (c Config) ToString() string
Constants ¶
View Source
const DEFAULT_NAME = "noop-server"
View Source
const DEFAULT_RECORD_FORMAT = "noop-client"
View Source
const DEFAULT_RECORD_TARGET = "record.txt"
View Source
const DEFAULT_RECORD_TARGET_APPEND = ".bak"
Variables ¶
View Source
var VALID_RECORD_FORMATS = []string{ DEFAULT_RECORD_FORMAT, "json", "yaml", "csv", }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { App string Port string Addr string CertPrivatePath string CertKeyPath string CertCAPath string Verbose bool StreamRecord bool Record bool RecordTarget string NProcs int Sleep time.Duration Echo bool Script string // contains filtered or unexported fields }
func (Config) MTLSEnabled ¶
func (Config) RecordFile ¶ added in v1.3.0
Create RecordTarget file, if Record is configured. If it already exists, back up the old one.
This returned 'os.File' must be closed when you're done with it.
func (*Config) RecordFormatter ¶ added in v1.3.3
func (c *Config) RecordFormatter() formatter.RecordsFormatter
This function assigns the formatter.RecordsFormatter interface based on what is selected via the CLI.
func (Config) TLSEnabled ¶
Click to show internal directories.
Click to hide internal directories.