config

package
v0.0.0-...-cfe5e5d Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

the package dhcphosts provides utilities to work with configuration in the dhcphosts (see man 8 dnsmasq) format

Index

Constants

View Source
const (
	DefaultIface string = "127.0.0.1"
	DefaultPort  int    = 50777
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	IPRange     string `json:"iprange"`
	HostsPath   string `json:"hostspath"`
	LeasesPath  string `json:"leasespath"`
	CertFile    string `json:"certfile"`
	KeyFile     string `json:"keyfile"`
	Iface       string `json:"iface"`
	Port        int    `json:"port"`
	JournalPath string `json:"journalpath"`
}

func Default

func Default() *Config

func ParseFile

func ParseFile(path string) (*Config, error)

func (*Config) Check

func (cfg *Config) Check() error

func (*Config) SetupTLS

func (cfg *Config) SetupTLS() ([]grpc.ServerOption, error)

Jump to

Keyboard shortcuts

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