Discover Packages
github.com/douyu/jupiter
pkg
sentinel
package
Version:
v0.3.4
Opens a new window with list of versions in this module.
Published: Dec 24, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Config struct {
AppName string `json:"appName"`
LogPath string `json:"logPath"`
FlowRules []*flow .Rule `json:"rules"`
FlowRulesFile string `json:"flowRulesFile"`
}
Config ...
DefaultConfig returns default config for sentinel
InitSentinelCoreComponent init sentinel core component
Currently, only flow rules from json file is supported
todo: support dynamic rule config
todo: support more rule such as system rule
Source Files
¶
Click to show internal directories.
Click to hide internal directories.