sentinel

package
v0.3.1 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

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

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