sentinel

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "sentinel"

Variables

This section is empty.

Functions

func Entry added in v0.2.5

func Entry(resource string) (*base.SentinelEntry, *base.BlockError)

Types

type Config

type Config struct {
	AppName       string       `json:"appName"`
	LogPath       string       `json:"logPath"`
	FlowRules     []*flow.Rule `json:"rules"`
	FlowRulesFile string       `json:"flowRulesFile"`
}

Config ...

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns default config for sentinel

func RawConfig

func RawConfig(key string) *Config

RawConfig ...

func StdConfig added in v0.2.5

func StdConfig(name string) *Config

StdConfig ...

func (*Config) Build added in v0.2.5

func (config *Config) Build() error

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

Jump to

Keyboard shortcuts

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