Documentation ¶ Index ¶ type Object type SearchRequest type Server func NewServer(storage *db.DistributedStorage, index *index.Index) *Server func (s *Server) Router() *mux.Router func (s *Server) Shutdown(ctx context.Context) error func (s *Server) Start(addr string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Object ¶ added in v1.0.12 type Object struct { ID string `json:"id"` Object []byte `json:"object"` Metadata map[string]string `json:"metadata"` } type SearchRequest ¶ type SearchRequest struct { Vector *db.Vector `json:"vector"` K int `json:"k"` } type Server ¶ type Server struct { // contains filtered or unexported fields } func NewServer ¶ func NewServer(storage *db.DistributedStorage, index *index.Index) *Server func (*Server) Router ¶ func (s *Server) Router() *mux.Router func (*Server) Shutdown ¶ added in v1.0.6 func (s *Server) Shutdown(ctx context.Context) error func (*Server) Start ¶ func (s *Server) Start(addr string) error Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.