service

package
v0.0.0-...-d310856 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPT_POLICY

type IPT_POLICY int
const (
	DROP       IPT_POLICY = 0
	REDIRECT   IPT_POLICY = 1
	CHAIN_NAME            = "WIT"
)

type IpTables

type IpTables struct {
	// contains filtered or unexported fields
}

func GetIptablesService

func GetIptablesService(config model.Config) *IpTables

func (*IpTables) Destroy

func (it *IpTables) Destroy(config model.Config)

func (*IpTables) Init

func (it *IpTables) Init() *IpTables

type IpsetService

type IpsetService struct {
	// contains filtered or unexported fields
}

func (*IpsetService) GetInstance

func (s *IpsetService) GetInstance(config model.Config, ipts *IpTables) *ipset.IPSet

type RadiusClient

type RadiusClient struct {
	// contains filtered or unexported fields
}

func (RadiusClient) Login

func (r RadiusClient) Login(user, pass string) (code radius.Code, err error)

func (RadiusClient) Logout

func (r RadiusClient) Logout(user, pass string) (code radius.Code, err error)

type WebService

type WebService struct {
	// contains filtered or unexported fields
}

func GetWebService

func GetWebService(config model.Config, ipset *ipset.IPSet) *WebService

func (*WebService) Start

func (wb *WebService) Start()

Jump to

Keyboard shortcuts

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