reload_src_conf

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReloadSrcConfCheck

func ReloadSrcConfCheck(conf ReloadSrcConf) error

ReloadSrcConfCheck checks reload conf

func ReloadSrcIPsLoad

func ReloadSrcIPsLoad(filename string) ([]string, error)

ReloadSrcIPsLoad loads reload iplist allowed from file

Types

type IPList

type IPList []string // list of ips

type Label2IP

type Label2IP map[string]IPList // label => ip list

type ReloadSrcConf

type ReloadSrcConf struct {
	Version string   // version of the config
	Config  Label2IP // label => ip list
}

func (*ReloadSrcConf) LoadAndCheck

func (conf *ReloadSrcConf) LoadAndCheck(filename string) (string, error)

LoadAndCheck loads iplist from filename

Jump to

Keyboard shortcuts

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