Documentation ¶
Index ¶
- Constants
- func NewDecouple(ctx *mirror.ModuleContext, cfg []byte) (mirror.Module, error)
- func NewFanout(ctx *mirror.ModuleContext, cfg []byte) (mirror.Module, error)
- func NewIdentity(ctx *mirror.ModuleContext, cfg []byte) (mirror.Module, error)
- func NewRateLimit(ctx *mirror.ModuleContext, cfg []byte) (mirror.Module, error)
- func NewSeq(ctx *mirror.ModuleContext, cfg []byte) (mirror.Module, error)
- func NewSplitBy(ctx *mirror.ModuleContext, cfg []byte) (mirror.Module, error)
- func NewVirtual(ctx *mirror.ModuleContext) mirror.Module
- type Decouple
- type DecoupleConfig
- type Fanout
- type Identity
- type RateLimit
- type RateLimitConfig
- type Seq
- type SplitBy
- type SplitByConfig
- type Virtual
Constants ¶
View Source
const (
DecoupleName = "control.decouple"
)
View Source
const (
FanoutName = "control.fanout"
)
View Source
const (
IdentityName = "control.identity"
)
View Source
const (
RateLimitName = "control.rate_limit"
)
View Source
const (
SeqName = "control.seq"
)
View Source
const (
SplitByName = "control.split_by"
)
Variables ¶
This section is empty.
Functions ¶
func NewDecouple ¶
func NewIdentity ¶
func NewRateLimit ¶
func NewSplitBy ¶
func NewVirtual ¶
func NewVirtual(ctx *mirror.ModuleContext) mirror.Module
Types ¶
type Decouple ¶
type Decouple struct {
// contains filtered or unexported fields
}
func (*Decouple) Context ¶
func (m *Decouple) Context() *mirror.ModuleContext
type DecoupleConfig ¶
type Fanout ¶
type Fanout struct {
// contains filtered or unexported fields
}
func (*Fanout) Context ¶
func (m *Fanout) Context() *mirror.ModuleContext
type Identity ¶
type Identity struct {
// contains filtered or unexported fields
}
func (*Identity) Context ¶
func (m *Identity) Context() *mirror.ModuleContext
type RateLimit ¶
type RateLimit struct {
// contains filtered or unexported fields
}
func (*RateLimit) Context ¶
func (m *RateLimit) Context() *mirror.ModuleContext
type RateLimitConfig ¶
type RateLimitConfig struct {
RPS *expr.NumberExpr `json:"rps"`
}
type Seq ¶
type Seq struct {
// contains filtered or unexported fields
}
func (*Seq) Context ¶
func (m *Seq) Context() *mirror.ModuleContext
type SplitBy ¶
type SplitBy struct {
// contains filtered or unexported fields
}
func (*SplitBy) Context ¶
func (m *SplitBy) Context() *mirror.ModuleContext
type SplitByConfig ¶
type SplitByConfig struct { Expr *expr.AnyExpr `json:"expr,omitempty"` Pipeline json.RawMessage `json:"pipeline,omitempty"` }
Click to show internal directories.
Click to hide internal directories.