Documentation ¶
Overview ¶
Package service manages the main logic of server.
Package service manages the main logic of server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cassandra ¶
type Cassandra interface { Connect(ctx context.Context) error Close(ctx context.Context) error GetVector(ctx context.Context, uuid string) (*model.Vector, error) GetIPs(ctx context.Context, uuid string) ([]string, error) SetVector(ctx context.Context, vec *model.Vector) error SetVectors(ctx context.Context, vecs ...*model.Vector) error DeleteVector(ctx context.Context, uuid string) error DeleteVectors(ctx context.Context, uuids ...string) error SetIPs(ctx context.Context, uuid string, ips ...string) error RemoveIPs(ctx context.Context, ips ...string) error }
Click to show internal directories.
Click to hide internal directories.