server

package
v1.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL