Documentation ¶
Overview ¶
Package sentinel provides a filter when using sentinel. Integrate Sentinel Go MUST HAVE: 1. Must initialize Sentinel Go run environment, refer to https://github.com/alibaba/sentinel-golang/blob/master/api/init.go 2. Register rules for resources user want to guard
Index ¶
- Constants
- func SetDubboConsumerFallback(f DubboFallback)
- func SetDubboProviderFallback(f DubboFallback)
- type DubboFallback
- type DubboLoggerWrapper
- func (d DubboLoggerWrapper) Debug(msg string, keysAndValues ...interface{})
- func (d DubboLoggerWrapper) DebugEnabled() bool
- func (d DubboLoggerWrapper) Error(err error, msg string, keysAndValues ...interface{})
- func (d DubboLoggerWrapper) ErrorEnabled() bool
- func (d DubboLoggerWrapper) Info(msg string, keysAndValues ...interface{})
- func (d DubboLoggerWrapper) InfoEnabled() bool
- func (d DubboLoggerWrapper) Warn(msg string, keysAndValues ...interface{})
- func (d DubboLoggerWrapper) WarnEnabled() bool
Constants ¶
View Source
const ( DefaultProviderPrefix = "dubbo:provider:" DefaultConsumerPrefix = "dubbo:consumer:" MethodEntryKey = constant.DubboCtxKey("$$sentinelMethodEntry") InterfaceEntryKey = constant.DubboCtxKey("$$sentinelInterfaceEntry") )
Variables ¶
This section is empty.
Functions ¶
func SetDubboConsumerFallback ¶
func SetDubboConsumerFallback(f DubboFallback)
func SetDubboProviderFallback ¶
func SetDubboProviderFallback(f DubboFallback)
Types ¶
type DubboFallback ¶
type DubboFallback func(context.Context, protocol.Invoker, protocol.Invocation, *base.BlockError) protocol.Result
type DubboLoggerWrapper ¶
func (DubboLoggerWrapper) Debug ¶
func (d DubboLoggerWrapper) Debug(msg string, keysAndValues ...interface{})
func (DubboLoggerWrapper) DebugEnabled ¶
func (d DubboLoggerWrapper) DebugEnabled() bool
func (DubboLoggerWrapper) Error ¶
func (d DubboLoggerWrapper) Error(err error, msg string, keysAndValues ...interface{})
func (DubboLoggerWrapper) ErrorEnabled ¶
func (d DubboLoggerWrapper) ErrorEnabled() bool
func (DubboLoggerWrapper) Info ¶
func (d DubboLoggerWrapper) Info(msg string, keysAndValues ...interface{})
func (DubboLoggerWrapper) InfoEnabled ¶
func (d DubboLoggerWrapper) InfoEnabled() bool
func (DubboLoggerWrapper) Warn ¶
func (d DubboLoggerWrapper) Warn(msg string, keysAndValues ...interface{})
func (DubboLoggerWrapper) WarnEnabled ¶
func (d DubboLoggerWrapper) WarnEnabled() bool
Click to show internal directories.
Click to hide internal directories.