iplists

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: BSD-3-Clause Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitIPList

func InitIPList(action *actionutils.ParentAction, listId int64) error

Types

type AccessLogsPopupAction added in v0.2.8

type AccessLogsPopupAction struct {
	actionutils.ParentAction
}

func (*AccessLogsPopupAction) Init added in v0.2.8

func (this *AccessLogsPopupAction) Init()

func (*AccessLogsPopupAction) RunGet added in v0.2.8

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

type BindHTTPFirewallPopupAction

type BindHTTPFirewallPopupAction struct {
	actionutils.ParentAction
}

func (*BindHTTPFirewallPopupAction) Init

func (this *BindHTTPFirewallPopupAction) Init()

func (*BindHTTPFirewallPopupAction) RunGet

func (this *BindHTTPFirewallPopupAction) RunGet(params struct {
	HttpFirewallPolicyId int64
	Type                 string
})

func (*BindHTTPFirewallPopupAction) RunPost

func (this *BindHTTPFirewallPopupAction) RunPost(params struct {
	HttpFirewallPolicyId int64
	ListId               int64

	Must *actions.Must
})

type CreateIPPopupAction

type CreateIPPopupAction struct {
	actionutils.ParentAction
}

func (*CreateIPPopupAction) Init

func (this *CreateIPPopupAction) Init()

func (*CreateIPPopupAction) RunGet

func (this *CreateIPPopupAction) RunGet(params struct {
	ListId int64
})

func (*CreateIPPopupAction) RunPost

func (this *CreateIPPopupAction) RunPost(params struct {
	ListId int64
	Method string

	Value  string
	IpData string

	ExpiredAt  int64
	Reason     string
	Type       string
	EventLevel string

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

type CreatePopupAction

type CreatePopupAction struct {
	actionutils.ParentAction
}

func (*CreatePopupAction) Init

func (this *CreatePopupAction) Init()

func (*CreatePopupAction) RunGet

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

func (*CreatePopupAction) RunPost

func (this *CreatePopupAction) RunPost(params struct {
	Name        string
	Code        string
	Type        string
	Description string
	IsGlobal    bool

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

type DeleteAction

type DeleteAction struct {
	actionutils.ParentAction
}

func (*DeleteAction) RunPost

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

type DeleteCountAction added in v1.3.2

type DeleteCountAction struct {
	actionutils.ParentAction
}

func (*DeleteCountAction) RunPost added in v1.3.2

func (this *DeleteCountAction) RunPost(params struct {
	Ip         string
	Keyword    string
	GlobalOnly bool
	Unread     bool
	EventLevel string
	ListType   string

	Count int64
})

type DeleteIPAction

type DeleteIPAction struct {
	actionutils.ParentAction
}

func (*DeleteIPAction) RunPost

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

type DeleteItemsAction added in v0.3.5

type DeleteItemsAction struct {
	actionutils.ParentAction
}

func (*DeleteItemsAction) RunPost added in v0.3.5

func (this *DeleteItemsAction) RunPost(params struct {
	ItemIds []int64
})

type ExportAction

type ExportAction struct {
	actionutils.ParentAction
}

func (*ExportAction) Init

func (this *ExportAction) Init()

func (*ExportAction) RunGet

func (this *ExportAction) RunGet(params struct {
	ListId int64
})

type ExportDataAction

type ExportDataAction struct {
	actionutils.ParentAction
}

func (*ExportDataAction) Init

func (this *ExportDataAction) Init()

func (*ExportDataAction) RunGet

func (this *ExportDataAction) RunGet(params struct {
	ListId int64
	Format string
})

type HttpFirewallAction

type HttpFirewallAction struct {
	actionutils.ParentAction
}

HttpFirewallAction 显示已经绑定的IP名单

func (*HttpFirewallAction) RunPost

func (this *HttpFirewallAction) RunPost(params struct {
	HttpFirewallPolicyId int64
	Type                 string
})

type ImportAction

type ImportAction struct {
	actionutils.ParentAction
}

func (*ImportAction) Init

func (this *ImportAction) Init()

func (*ImportAction) RunGet

func (this *ImportAction) RunGet(params struct {
	ListId int64
})

func (*ImportAction) RunPost

func (this *ImportAction) RunPost(params struct {
	ListId int64
	File   *actions.File

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

type IndexAction

type IndexAction struct {
	actionutils.ParentAction
}

func (*IndexAction) Init

func (this *IndexAction) Init()

func (*IndexAction) RunGet

func (this *IndexAction) RunGet(params struct {
	Ip         string
	Keyword    string
	GlobalOnly bool
	Unread     bool
	EventLevel string
	ListType   string
})

type ItemsAction

type ItemsAction struct {
	actionutils.ParentAction
}

func (*ItemsAction) Init

func (this *ItemsAction) Init()

func (*ItemsAction) RunGet

func (this *ItemsAction) RunGet(params struct {
	ListId     int64
	Keyword    string
	EventLevel string
})

type LevelOptionsAction added in v0.2.8

type LevelOptionsAction struct {
	actionutils.ParentAction
}

func (*LevelOptionsAction) RunPost added in v0.2.8

func (this *LevelOptionsAction) RunPost(params struct{})

type ListAction

type ListAction struct {
	actionutils.ParentAction
}

func (*ListAction) Init

func (this *ListAction) Init()

func (*ListAction) RunGet

func (this *ListAction) RunGet(params struct {
	ListId int64
})

type ListsAction added in v0.3.5

type ListsAction struct {
	actionutils.ParentAction
}

func (*ListsAction) Init added in v0.3.5

func (this *ListsAction) Init()

func (*ListsAction) RunGet added in v0.3.5

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

type ReadAllAction added in v0.4.0

type ReadAllAction struct {
	actionutils.ParentAction
}

func (*ReadAllAction) RunPost added in v0.4.0

func (this *ReadAllAction) RunPost(params struct{})

type SelectPopupAction added in v0.2.8

type SelectPopupAction struct {
	actionutils.ParentAction
}

func (*SelectPopupAction) Init added in v0.2.8

func (this *SelectPopupAction) Init()

func (*SelectPopupAction) RunGet added in v0.2.8

func (this *SelectPopupAction) RunGet(params struct {
	Type string
})

type TestAction

type TestAction struct {
	actionutils.ParentAction
}

func (*TestAction) Init

func (this *TestAction) Init()

func (*TestAction) RunGet

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

func (*TestAction) RunPost

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

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

type UnbindHTTPFirewallAction

type UnbindHTTPFirewallAction struct {
	actionutils.ParentAction
}

func (*UnbindHTTPFirewallAction) RunPost

func (this *UnbindHTTPFirewallAction) RunPost(params struct {
	HttpFirewallPolicyId int64
	ListId               int64
})

type UpdateAction

type UpdateAction struct {
	actionutils.ParentAction
}

func (*UpdateAction) Init

func (this *UpdateAction) Init()

func (*UpdateAction) RunGet

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

func (*UpdateAction) RunPost

func (this *UpdateAction) RunPost(params struct {
	ListId      int64
	Name        string
	Code        string
	Type        string
	Description string

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

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 {
	ItemId int64

	Value      string
	ExpiredAt  int64
	Reason     string
	Type       string
	EventLevel string

	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