sentinel

package
v0.0.0-...-d6ac821 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 (*Config) InitSentinelCoreComponent

func (config *Config) InitSentinelCoreComponent() error

InitSentinelCoreComponent customer 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