mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-02 16:28:39 +08:00
26c541b9cb
* feat: add middlewares config for zrpc * chore: add tests * chore: improve codecov * chore: improve codecov
22 lines
646 B
Go
22 lines
646 B
Go
package internal
|
|
|
|
type (
|
|
// ClientMiddlewaresConf defines whether to use client middlewares.
|
|
ClientMiddlewaresConf struct {
|
|
Trace bool `json:",default=true"`
|
|
Duration bool `json:",default=true"`
|
|
Prometheus bool `json:",default=true"`
|
|
Breaker bool `json:",default=true"`
|
|
Timeout bool `json:",default=true"`
|
|
}
|
|
|
|
// ServerMiddlewaresConf defines whether to use server middlewares.
|
|
ServerMiddlewaresConf struct {
|
|
Trace bool `json:",default=true"`
|
|
Recover bool `json:",default=true"`
|
|
Stat bool `json:",default=true"`
|
|
Prometheus bool `json:",default=true"`
|
|
Breaker bool `json:",default=true"`
|
|
}
|
|
)
|