Documentation
¶
Index ¶
- type Client
- func (*Client) BuildConfig() (app.Materializer, error)
- func (c *Client) Close(_ context.Context) error
- func (c *Client) Conn() *grpc.ClientConn
- func (*Client) Deps() []any
- func (c *Client) Inject(args []any)
- func (c *Client) Label() string
- func (c *Client) ProbeReady(ctx context.Context) error
- func (c *Client) Ready(ctx context.Context) error
- func (c *Client) Start(ctx context.Context) error
- func (c *Client) Target() string
- type Config
- type GRPCMetrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an outbound gRPC connection resource. Catalog field: *Client (Configurable); dial happens in Start after Inject resolves GRPCMetrics.
func (*Client) BuildConfig ¶
func (*Client) BuildConfig() (app.Materializer, error)
BuildConfig returns the config spec for materialize.
func (*Client) Conn ¶
func (c *Client) Conn() *grpc.ClientConn
Conn returns the underlying gRPC connection (nil before Start).
func (*Client) ProbeReady ¶
ProbeReady reports outbound gRPC readiness (ops duck typing; no ops import).
type Config ¶
Config is the gRPC client spec (Label, Host, Port); ecfg fills before Build. Target address is host:port (plaintext; TLS is out of scope for v1).
type GRPCMetrics ¶
type GRPCMetrics struct {
// contains filtered or unexported fields
}
GRPCMetrics is a singleton pool resource: contributor + shared prometheus interceptors for all client-grpc clients. RegisterMetrics matches ops metrics duck-typing (no ops import).
func (*GRPCMetrics) RegisterMetrics ¶
func (m *GRPCMetrics) RegisterMetrics(reg *prom.Registry) error
func (*GRPCMetrics) StreamClientInterceptor ¶
func (m *GRPCMetrics) StreamClientInterceptor() grpc.StreamClientInterceptor
func (*GRPCMetrics) UnaryClientInterceptor ¶
func (m *GRPCMetrics) UnaryClientInterceptor() grpc.UnaryClientInterceptor