Documentation ¶
Index ¶
- type CacheGetter
- type Client
- func (c *Client) Close() error
- func (c *Client) IsReadyForStreaming() bool
- func (c *Client) Notify(ctx context.Context, req structs.ServiceSpecificRequest, correlationID string, ...) error
- func (c *Client) ServiceNodes(ctx context.Context, req structs.ServiceSpecificRequest) (structs.IndexedCheckServiceNodes, cache.ResultMeta, error)
- type MaterializedViewStore
- type MaterializerDeps
- type NetRPC
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheGetter ¶
type Client ¶
type Client struct { NetRPC NetRPC Cache CacheGetter ViewStore MaterializedViewStore MaterializerDeps MaterializerDeps CacheName string UseStreamingBackend bool QueryOptionDefaults func(options *structs.QueryOptions) }
Client provides access to service health data.
func (*Client) IsReadyForStreaming ¶ added in v1.12.7
IsReadyForStreaming will indicate if the underlying gRPC connection is ready.
func (*Client) Notify ¶ added in v1.10.0
func (c *Client) Notify( ctx context.Context, req structs.ServiceSpecificRequest, correlationID string, ch chan<- cache.UpdateEvent, ) error
func (*Client) ServiceNodes ¶
func (c *Client) ServiceNodes( ctx context.Context, req structs.ServiceSpecificRequest, ) (structs.IndexedCheckServiceNodes, cache.ResultMeta, error)
type MaterializedViewStore ¶ added in v1.10.0
type MaterializedViewStore interface { Get(ctx context.Context, req submatview.Request) (submatview.Result, error) Notify(ctx context.Context, req submatview.Request, cID string, ch chan<- cache.UpdateEvent) error }
type MaterializerDeps ¶ added in v1.10.0
type MaterializerDeps struct { Conn *grpc.ClientConn Logger hclog.Logger }
Click to show internal directories.
Click to hide internal directories.