config

package
v0.0.0-...-e1d70e2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioConfig

type AudioConfig struct {
	Application string
	Args        string
}

AudioConfig contains the settings for audio I/O

func (AudioConfig) ArgList

func (cfg AudioConfig) ArgList() []string

ArgList returns the arguments as a list of strings.

type Config

type Config struct {
	Verbose   bool
	Server    ServerConfig
	Recording AudioConfig
	Playback  AudioConfig
}

Config contains the application configuration

func ReadConfigFile

func ReadConfigFile(filename string) (Config, error)

ReadConfigFile attempts to load the given config file

type ServerConfig

type ServerConfig struct {
	Address  string
	Insecure bool
	ModelID  string
}

ServerConfig contains the Diatheke server settings

Jump to

Keyboard shortcuts

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