server

package
v0.0.0-...-388aa53 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*options)

Option option

func WithRaftOption

func WithRaftOption(opt raftstore.Option) Option

WithRaftOption append a raft option

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server serve the search,insert,and update requests

func NewServer

func NewServer(addr, raftAddr string, opts ...Option) *Server

NewServer returns server for serve vectordb requests

func (*Server) Start

func (s *Server) Start()

Start start the server

func (*Server) Stop

func (s *Server) Stop()

Stop stop the server

Jump to

Keyboard shortcuts

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