sentinel

package
v0.0.0-...-b937326 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Entry

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

func StdConfig(name string) *Config

StdConfig ...

func (*Config) Build

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