sentinel

package
v3.1.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: Apache-2.0 Imports: 13 Imported by: 4

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

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 DubboLoggerWrapper

type DubboLoggerWrapper struct {
	logger.Logger
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL