rpc

package
v0.0.0-...-b199f39 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package rpc provides a zoekt.Searcher over RPC.

Index

Constants

View Source
const DefaultRPCPath = "/rpc"

DefaultRPCPath is the rpc path used by zoekt-webserver

Variables

This section is empty.

Functions

func Client

func Client(address string) zoekt.Searcher

Client connects to a Searcher HTTP RPC server at address (host:port) using DefaultRPCPath path.

func ClientAtPath

func ClientAtPath(address, path string) zoekt.Searcher

ClientAtPath connects to a Searcher HTTP RPC server at address and path (http://host:port/path).

func RegisterGob

func RegisterGob()

RegisterGob registers various query types with gob. It can be called more than once, because calls to gob.Register are protected by a sync.Once.

func Server

func Server(searcher zoekt.Searcher) http.Handler

Server returns an http.Handler for searcher which is the server side of the RPC calls.

Types

This section is empty.

Directories

Path Synopsis
internal
srv

Jump to

Keyboard shortcuts

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