Documentation ¶
Index ¶
Constants ¶
View Source
const ( ReportModePull = "pull" ReportModePush = "push" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReportMode ¶
type ReportMode string
type Reporter ¶
type Reporter interface { // report the duration of an invocation Report(ctx context.Context, invoker protocol.Invoker, invocation protocol.Invocation, cost time.Duration, res protocol.Result) }
Reporter will be used to report the invocation's duration
type ReporterConfig ¶
type ReporterConfig struct { Enable bool Namespace string Mode ReportMode Port string Path string PushGatewayAddress string }
func NewReporterConfig ¶
func NewReporterConfig() *ReporterConfig
Click to show internal directories.
Click to hide internal directories.