Documentation
¶
Index ¶
Constants ¶
View Source
const PackageName = "core.sentinel"
PackageName component name
Variables ¶
This section is empty.
Functions ¶
func IsResExist ¶ added in v1.1.10
IsResExist check if a resource exists
Types ¶
type Component ¶
type Component struct { }
Component defines component's configuration schema, name, logger, etc.
type Config ¶
type Config struct { AppName string `json:"appName"` // 应用名,默认从ego框架内部获取 LogPath string `json:"logPath"` // 日志路径,默认./logs FlowRulesFile string `json:"flowRulesFile"` // 限流配置路径 }
Config defines component configuration schema
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container defines a component instance.
func DefaultContainer ¶
func DefaultContainer() *Container
DefaultContainer returns an default container.
Click to show internal directories.
Click to hide internal directories.