server

package
v0.0.0-...-df1d7b1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-2-Clause-Views Imports: 33 Imported by: 1

Documentation

Index

Constants

View Source
const RequestTimeout = 30 * time.Second

Variables

View Source
var (
	ErrTimedOut = errors.New("timed out talking to backend")
)

Functions

func New

func New(cfg *config.Config) (http.Handler, error)

func ParseQuery

func ParseQuery(query string, globalRegex bool) (pb.Query, error)

Types

type Backend

type Backend struct {
	Id         string
	Addr       string
	I          *I
	Codesearch pb.CodeSearchClient
}

func NewBackend

func NewBackend(id string, addr string, extraOpts ...grpc.DialOption) (*Backend, error)

func (*Backend) Start

func (bk *Backend) Start()

type DirListingSort

type DirListingSort []directoryListEntry

func (DirListingSort) Len

func (s DirListingSort) Len() int

func (DirListingSort) Less

func (s DirListingSort) Less(i, j int) bool

func (DirListingSort) Swap

func (s DirListingSort) Swap(i, j int)

type I

type I struct {
	Name  string
	Trees []Tree
	sync.Mutex
	IndexTime time.Time
}

type Tree

type Tree struct {
	Name    string
	Version string
	Url     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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