Documentation
¶
Index ¶
Constants ¶
View Source
const ( IndexResource = "resource" IndexRest = "rest" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagerInterface ¶
type ManagerInterface interface {
Validator
Sync(config *ctrlmeshproto.CircuitBreaker) (*ctrlmeshproto.ConfigResp, error)
}
func NewManager ¶
func NewManager(ctx context.Context) ManagerInterface
type ValidateResult ¶
type Validator ¶
type Validator interface {
ValidateTrafficIntercept(URL string, method string) (result *ValidateResult)
ValidateRest(URL string, method string) (result ValidateResult)
ValidateResource(namespace, apiGroup, resource, verb string) (result ValidateResult)
HandlerWrapper() func(http.Handler) http.Handler
}
Click to show internal directories.
Click to hide internal directories.