access

package
v0.1.72 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpdateAction

type UpdateAction actions.Action

func (*UpdateAction) Run

func (this *UpdateAction) Run(params struct {
	ServerId   string
	LocationId string
})

修改访问控制

func (*UpdateAction) RunPost

func (this *UpdateAction) RunPost(params struct {
	ServerId   string
	LocationId string

	TrafficOn         bool
	TrafficTotalOn    bool
	TrafficTotalTotal int64

	TrafficSecondOn       bool
	TrafficSecondTotal    int64
	TrafficSecondDuration int64

	TrafficMinuteOn       bool
	TrafficMinuteTotal    int64
	TrafficMinuteDuration int64

	TrafficHourOn       bool
	TrafficHourTotal    int64
	TrafficHourDuration int64

	TrafficDayOn       bool
	TrafficDayTotal    int64
	TrafficDayDuration int64

	TrafficMonthOn       bool
	TrafficMonthTotal    int64
	TrafficMonthDuration int64

	AccessOn       bool
	AccessAllowOn  bool
	AccessAllowIPs []string

	AccessDenyOn  bool
	AccessDenyIPs []string

	Must *actions.Must
})

保存访问控制

Jump to

Keyboard shortcuts

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