Documentation
¶
Index ¶
- func NewMultiplexedSource(handler bstream.Handler, sources []SourceAddr, maxSourceLatency time.Duration, ...) bstream.Source
- type Relayer
- func (r *Relayer) Check(ctx context.Context, in *pbhealth.HealthCheckRequest) (*pbhealth.HealthCheckResponse, error)
- func (r *Relayer) List(ctx context.Context, in *pbhealth.HealthListRequest) (*pbhealth.HealthListResponse, error)
- func (r *Relayer) Run()
- func (r *Relayer) Watch(req *pbhealth.HealthCheckRequest, stream pbhealth.Health_WatchServer) error
- type SourceAddr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMultiplexedSource ¶
Types ¶
type Relayer ¶
func NewRelayer ¶
func (*Relayer) Check ¶
func (r *Relayer) Check(ctx context.Context, in *pbhealth.HealthCheckRequest) (*pbhealth.HealthCheckResponse, error)
func (*Relayer) List ¶ added in v1.9.9
func (r *Relayer) List(ctx context.Context, in *pbhealth.HealthListRequest) (*pbhealth.HealthListResponse, error)
func (*Relayer) Watch ¶
func (r *Relayer) Watch(req *pbhealth.HealthCheckRequest, stream pbhealth.Health_WatchServer) error
type SourceAddr ¶ added in v1.13.1
type SourceAddr struct {
// URL is the gRPC endpoint address (everything before the '?' separator).
URL string
// SecretKey is the value of the "secret" query parameter, or empty when
// no authentication is required.
SecretKey string
}
SourceAddr holds a parsed relayer source address, optionally carrying a secret key extracted from the "?secret=<key>" query parameter.
Click to show internal directories.
Click to hide internal directories.