options

package
v0.3.11-8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnOptionsChange

func OnOptionsChange(oldOptions, newOptions interface{}) bool

Types

type SLoggerOptions

type SLoggerOptions struct {
	common_options.CommonOptions

	common_options.DBOptions

	SyslogUrl string `help:"external syslog url, e.g. tcp://localhost:1234@cloud"`

	EnableSeparateAdminLog bool `help:"enable separate log for auditor admin" default:"false"`

	SecadminRoleNames                  []string `help:"role names of security admin" default:"sys_secadmin,domain_secadmin"`
	OpsadminRoleNames                  []string `help:"role names of operation admin" default:"sys_opsadmin,domain_opsadmin"`
	AuditorRoleNames                   []string `help:"role names of auditor admin" default:"sys_adtadmin,domain_adtadmin"`
	ActionLogExceedCount               int      `help:"trigger notification when action log exceed count" default:"-1"`
	ActionLogExceedCountNotifyInterval string   `help:"trigger notification interval" default:"5m"`

	SyslogVendorCode string `help:"vendor code of syslog" default:"0003"`
	SyslogSeparator  string `help:"syslog message field separator" default:","`
	SyslogSepEscape  string `help:"syslog message separate escape string" default:"+"`
}
var (
	Options SLoggerOptions
)

Jump to

Keyboard shortcuts

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