reload_src_conf

package
v0.0.0-...-42829d4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.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