Versions in this module Expand all Collapse all v0 v0.3.2 Jun 18, 2025 Changes in this version + var ModelClientMap = make(map[string][]context.CancelFunc) + type Client struct + func NewClient(base *url.URL, http *http.Client) *Client + func (c *Client) Do(ctx context.Context, method, path string, reqData, respData any) error + func (c *Client) Stream(ctx context.Context, method, path string, data any, fn func([]byte) error) error + func (c *Client) StreamResponse(ctx context.Context, method, path string, reqData any) (chan []byte, chan error) + type GRPCClient struct + func NewGRPCClient(target string) (*GRPCClient, error) + func (c *GRPCClient) Close() error + func (c *GRPCClient) ModelInfer(inferInputs []*grpc_client.ModelInferRequest_InferInputTensor, ...) (*grpc_client.ModelInferResponse, error) + func (c *GRPCClient) ModelMetadata(modelName string, modelVersion string) (*grpc_client.ModelMetadataResponse, error) + func (c *GRPCClient) ServerLive() (*grpc_client.ServerLiveResponse, error) + func (c *GRPCClient) ServerReady() (*grpc_client.ServerReadyResponse, error)