Documentation
¶
Overview ¶
TODO: this is a duplicate of LocalAI/core/store/client.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteRequest ¶
type DeleteRequest struct {
Keys [][]float32 `json:"keys"`
}
type FindRequest ¶
type FindResponse ¶
type GetRequest ¶
type GetRequest struct {
Keys [][]float32 `json:"keys"`
}
type GetResponse ¶
type SetRequest ¶
Define request and response struct formats based on the API documentation
type StoreClient ¶
Define a struct to hold your store API client
func NewStoreClient ¶
func NewStoreClient(baseUrl, apiToken string) *StoreClient
Constructor for StoreClient
func (*StoreClient) Delete ¶
func (c *StoreClient) Delete(req DeleteRequest) error
Implement Delete method
func (*StoreClient) Find ¶
func (c *StoreClient) Find(req FindRequest) (*FindResponse, error)
Implement Find method
func (*StoreClient) Get ¶
func (c *StoreClient) Get(req GetRequest) (*GetResponse, error)
Implement Get method
Click to show internal directories.
Click to hide internal directories.