search

package
v0.0.0-...-56d2f63 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Tracer   opentracing.Tracer
	Port     int
	IpAddr   string
	Registry *registry.Client
	// contains filtered or unexported fields
}

Server implments the search service

func (*Server) Nearby

func (s *Server) Nearby(ctx context.Context, req *pb.NearbyRequest) (*pb.SearchResult, error)

Nearby returns ids of nearby hotels ordered by ranking algo

func (*Server) Run

func (s *Server) Run() error

Run starts the server

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown cleans up any processes

Directories

Path Synopsis
Package search is a generated protocol buffer package.
Package search is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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