ipadmin

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ChinaCountryId = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateIPPopupAction

type CreateIPPopupAction struct {
	actionutils.ParentAction
}

func (*CreateIPPopupAction) Init

func (this *CreateIPPopupAction) Init()

func (*CreateIPPopupAction) RunGet

func (this *CreateIPPopupAction) RunGet(params struct {
	FirewallPolicyId int64
	Type             string
})

func (*CreateIPPopupAction) RunPost

func (this *CreateIPPopupAction) RunPost(params struct {
	FirewallPolicyId int64
	ListId           int64
	IpFrom           string
	IpTo             string
	ExpiredAt        int64
	Reason           string
	Type             string
	EventLevel       string

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

type DeleteIPAction

type DeleteIPAction struct {
	actionutils.ParentAction
}

func (*DeleteIPAction) RunPost

func (this *DeleteIPAction) RunPost(params struct {
	FirewallPolicyId int64
	ItemId           int64
})

type IndexAction

type IndexAction struct {
	actionutils.ParentAction
}

func (*IndexAction) Init

func (this *IndexAction) Init()

func (*IndexAction) RunGet

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

func (*IndexAction) RunPost

func (this *IndexAction) RunPost(params struct {
	FirewallPolicyId int64
	CountryIds       []int64

	Must *actions.Must
})

type ListsAction

type ListsAction struct {
	actionutils.ParentAction
}

func (*ListsAction) Init

func (this *ListsAction) Init()

func (*ListsAction) RunGet

func (this *ListsAction) RunGet(params struct {
	FirewallPolicyId int64
	Type             string
})

type ProvincesAction

type ProvincesAction struct {
	actionutils.ParentAction
}

func (*ProvincesAction) Init

func (this *ProvincesAction) Init()

func (*ProvincesAction) RunGet

func (this *ProvincesAction) RunGet(params struct {
	FirewallPolicyId int64
})

func (*ProvincesAction) RunPost

func (this *ProvincesAction) RunPost(params struct {
	FirewallPolicyId int64
	ProvinceIds      []int64

	Must *actions.Must
})

type TestAction added in v0.0.10

type TestAction struct {
	actionutils.ParentAction
}

func (*TestAction) Init added in v0.0.10

func (this *TestAction) Init()

func (*TestAction) RunGet added in v0.0.10

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

func (*TestAction) RunPost added in v0.0.10

func (this *TestAction) RunPost(params struct {
	FirewallPolicyId int64
	Ip               string

	Must *actions.Must
})

type UpdateIPPopupAction

type UpdateIPPopupAction struct {
	actionutils.ParentAction
}

func (*UpdateIPPopupAction) Init

func (this *UpdateIPPopupAction) Init()

func (*UpdateIPPopupAction) RunGet

func (this *UpdateIPPopupAction) RunGet(params struct {
	ItemId int64
})

func (*UpdateIPPopupAction) RunPost

func (this *UpdateIPPopupAction) RunPost(params struct {
	FirewallPolicyId int64
	ItemId           int64

	IpFrom     string
	IpTo       string
	ExpiredAt  int64
	Reason     string
	Type       string
	EventLevel string

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

Jump to

Keyboard shortcuts

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