Import path:
gitlab.soludian.com/soludian/fountain/libs/fsentinel
fsentinel
go
import "gitlab.soludian.com/soludian/fountain/libs/fsentinel"Index
Constants
PackageName sets the package name
go
const KPackageName = "fsentinel"type Config
Config configuration
go
type Config struct {
AppName string `json:"app_name" conf:"app_name"` // application name, obtained from the fountain framework by default
LogPath string `json:"log_path" conf:"log_path"` // log path, default./logs
FlowRulesFile string `json:"flow_rules_file" conf:"flow_rules_file"` // Current limiting configuration path
}func DefaultConfig
go
func DefaultConfig() *ConfigDefaultConfig returns default config for sentinel
type Container
Container container
go
type Container struct {
// contains filtered or unexported fields
}func DefaultContainer
go
func DefaultContainer() *ContainerDefaultContainer default container
func Load
go
func Load(key string) *ContainerLoad loads the configuration key
func (*Container) Build
go
func (c *Container) Build(options ...Option)Build builds the component
type FSentinel
Component component
go
type FSentinel struct {
}type Option
Option optional
go
type Option func(c *Container)Generated by gomarkdoc