Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HttpClient *http.Client
View Source
var Resolver = dnscache.New(10 * time.Second)
Functions ¶
This section is empty.
Types ¶
type CallbackType ¶
type CallbackType func(*jina.DataRequestProto)
type Client ¶
type Client interface { POST(requests <-chan *jina.DataRequestProto, onDone, onError, onAlways CallbackType) error SequentialPOST(requests <-chan *jina.DataRequestProto, onDone, onError, onAlways CallbackType) error }
type GRPCClient ¶
type GRPCClient struct { Host string // contains filtered or unexported fields }
func NewGRPCClient ¶
func NewGRPCClient(host string) (*GRPCClient, error)
func (GRPCClient) POST ¶
func (c GRPCClient) POST(requests <-chan *jina.DataRequestProto, onDone, onError, onAlways CallbackType) error
func (GRPCClient) SequentialPOST ¶
func (c GRPCClient) SequentialPOST(requests <-chan *jina.DataRequestProto, onDone, onError, onAlways CallbackType) error
type GRPCHealthCheckClient ¶
type GRPCHealthCheckClient struct { Host string // contains filtered or unexported fields }
func NewGRPCHealthCheckClient ¶
func NewGRPCHealthCheckClient(host string) (*GRPCHealthCheckClient, error)
func (*GRPCHealthCheckClient) HealthCheck ¶
func (c *GRPCHealthCheckClient) HealthCheck() (bool, error)
type GRPCInfoClient ¶
type GRPCInfoClient struct { Host string // contains filtered or unexported fields }
func NewGRPCInfoClient ¶
func NewGRPCInfoClient(host string) (*GRPCInfoClient, error)
func (*GRPCInfoClient) Info ¶
func (c *GRPCInfoClient) Info() (*jina.JinaInfoProto, error)
func (*GRPCInfoClient) InfoJSON ¶
func (c *GRPCInfoClient) InfoJSON() ([]byte, error)
type HTTPClient ¶
type HTTPClient struct { Host string // contains filtered or unexported fields }
func NewHTTPClient ¶
func NewHTTPClient(host string) (*HTTPClient, error)
func (HTTPClient) POST ¶
func (c HTTPClient) POST(requests <-chan *jina.DataRequestProto, onDone, onError, onAlways CallbackType) error
func (HTTPClient) SequentialPOST ¶
func (c HTTPClient) SequentialPOST(requests <-chan *jina.DataRequestProto, onDone, onError, onAlways CallbackType) error
type HTTPHealthCheckClient ¶
type HTTPHealthCheckClient struct { Host string // contains filtered or unexported fields }
func NewHTTPHealthCheckClient ¶
func NewHTTPHealthCheckClient(host string) (*HTTPHealthCheckClient, error)
func (HTTPHealthCheckClient) HealthCheck ¶
func (c HTTPHealthCheckClient) HealthCheck() (bool, error)
type HTTPInfoClient ¶
type HTTPInfoClient struct { Host string // contains filtered or unexported fields }
func NewHTTPInfoClient ¶
func NewHTTPInfoClient(host string) (HTTPInfoClient, error)
func (HTTPInfoClient) Info ¶
func (c HTTPInfoClient) Info() (*jina.JinaInfoProto, error)
func (HTTPInfoClient) InfoJSON ¶
func (c HTTPInfoClient) InfoJSON() ([]byte, error)
type HealthCheckClient ¶
type WebSocketClient ¶
type WebSocketClient struct { Host string // contains filtered or unexported fields }
func NewWebSocketClient ¶
func NewWebSocketClient(host string) (*WebSocketClient, error)
func (WebSocketClient) POST ¶
func (client WebSocketClient) POST(requests <-chan *jina.DataRequestProto, onDone, onError, onAlways CallbackType) error
func (WebSocketClient) SequentialPOST ¶
func (client WebSocketClient) SequentialPOST(requests <-chan *jina.DataRequestProto, onDone, onError, onAlways CallbackType) error
type WebSocketHealthCheckClient ¶
type WebSocketHealthCheckClient struct { Host string // contains filtered or unexported fields }
func NewWebSocketHealthCheckClient ¶
func NewWebSocketHealthCheckClient(host string) (*WebSocketHealthCheckClient, error)
func (WebSocketHealthCheckClient) HealthCheck ¶
func (c WebSocketHealthCheckClient) HealthCheck() (bool, error)
type WebSocketInfoClient ¶
type WebSocketInfoClient struct { Host string // contains filtered or unexported fields }
func NewWebSocketInfoClient ¶
func NewWebSocketInfoClient(host string) (WebSocketInfoClient, error)
func (WebSocketInfoClient) Info ¶
func (c WebSocketInfoClient) Info() (*jina.JinaInfoProto, error)
func (WebSocketInfoClient) InfoJSON ¶
func (c WebSocketInfoClient) InfoJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.