sentinel

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

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.FlowRule `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