ipbox

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePopupAction

type CreatePopupAction struct {
	actionutils.ParentAction
}

func (*CreatePopupAction) Init

func (this *CreatePopupAction) Init()

func (*CreatePopupAction) RunGet

func (this *CreatePopupAction) RunGet(params struct{})

func (*CreatePopupAction) RunPost

func (this *CreatePopupAction) RunPost(params struct {
	Name string
	Type string

	// file
	FilePath       string
	FileAutoCreate bool

	// es
	EsEndpoint    string
	EsIndex       string
	EsMappingType string
	EsUsername    string
	EsPassword    string

	// mysql
	MysqlHost     string
	MysqlPort     int
	MysqlUsername string
	MysqlPassword string
	MysqlDatabase string
	MysqlTable    string
	MysqlLogField string

	// tcp
	TcpNetwork string
	TcpAddr    string

	// syslog
	SyslogProtocol   string
	SyslogServerAddr string
	SyslogServerPort int
	SyslogSocket     string
	SyslogTag        string
	SyslogPriority   int

	// command
	CommandCommand string
	CommandArgs    string
	CommandDir     string

	IsPublic bool

	Must *actions.Must
	CSRF *actionutils.CSRF
})

type DeleteAction

type DeleteAction struct {
	actionutils.ParentAction
}

func (*DeleteAction) RunPost

func (this *DeleteAction) RunPost(params struct {
	PolicyId int64
})

type IndexAction

type IndexAction struct {
	actionutils.ParentAction
}

func (*IndexAction) Init

func (this *IndexAction) Init()

func (*IndexAction) RunGet

func (this *IndexAction) RunGet(params struct{})

type PolicyAction

type PolicyAction struct {
	actionutils.ParentAction
}

func (*PolicyAction) Init

func (this *PolicyAction) Init()

func (*PolicyAction) RunGet

func (this *PolicyAction) RunGet(params struct {
	PolicyId int64
})

type TestAction

type TestAction struct {
	actionutils.ParentAction
}

func (*TestAction) Init

func (this *TestAction) Init()

func (*TestAction) RunGet

func (this *TestAction) RunGet(params struct {
	PolicyId int64
})

func (*TestAction) RunPost

func (this *TestAction) RunPost(params struct {
	PolicyId int64
	BodyJSON []byte

	Must *actions.Must
})

type UpdateAction

type UpdateAction struct {
	actionutils.ParentAction
}

func (*UpdateAction) Init

func (this *UpdateAction) Init()

func (*UpdateAction) RunGet

func (this *UpdateAction) RunGet(params struct {
	PolicyId int64
})

func (*UpdateAction) RunPost

func (this *UpdateAction) RunPost(params struct {
	PolicyId int64
	Name     string

	// file
	FilePath       string
	FileAutoCreate bool

	// es
	EsEndpoint    string
	EsIndex       string
	EsMappingType string
	EsUsername    string
	EsPassword    string

	// mysql
	MysqlHost     string
	MysqlPort     int
	MysqlUsername string
	MysqlPassword string
	MysqlDatabase string
	MysqlTable    string
	MysqlLogField string

	// tcp
	TcpNetwork string
	TcpAddr    string

	// syslog
	SyslogProtocol   string
	SyslogServerAddr string
	SyslogServerPort int
	SyslogSocket     string
	SyslogTag        string
	SyslogPriority   int

	// command
	CommandCommand string
	CommandArgs    string
	CommandDir     string

	IsOn     bool
	IsPublic bool

	Must *actions.Must
	CSRF *actionutils.CSRF
})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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