config

package
v0.0.0-...-4002316 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config reads configuration from the Scramr config file

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Hostname       string              `yaml:"hostname"`
	ListenAddr     string              `yaml:"listen_address"`
	ListenPort     int                 `yaml:"listen_port"`
	ForwardMap     map[string][]string `yaml:"forwards"`
	ServerTimeouts map[string]string   `yaml:"server_timeouts"`
	ClientTimeouts map[string]string   `yaml:"client_timeouts"`
	Timeouts       timeouts
	Forward        map[string]string
}

func Read

func Read(f string) (*Config, error)

func Read opens the specified config file and reads it into the Config struct

Jump to

Keyboard shortcuts

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