Documentation
¶
Overview ¶
Package config constructs, loads, and redacts Funnel application configuration.
Index ¶
- func DefaultConfig() *schema.Config
- func EmptyConfig() *schema.Config
- func Examples() map[string]string
- func HTTPAddress(c *schema.Server) string
- func Parse(raw []byte, conf *schema.Config) error
- func ParseFile(relpath string, conf *schema.Config) error
- func RPCAddress(c *schema.Server) string
- func ResponseBytes(s *schema.Server) int
- func Safe(c *schema.Config) *schema.Config
- func ToYaml(c *schema.Config) ([]byte, error)
- func ToYamlFile(c *schema.Config, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultConfig ¶
DefaultConfig returns configuration with simple defaults.
func EmptyConfig ¶
EmptyConfig allocates configuration sections without application defaults.
func HTTPAddress ¶
HTTPAddress returns the HTTP address based on HostName and HTTPPort
func ParseFile ¶
ParseFile parses a Funnel config file, which is formatted in YAML, and returns a Config struct.
func RPCAddress ¶
RPCAddress returns the RPC address based on HostName and RPCPort
func ResponseBytes ¶
ResponseBytes resolves the server's bounded gRPC response limit.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.