recommendation

package
v0.0.0-...-82bdfc5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hotel

type Hotel struct {
	ID     bson.ObjectId `bson:"_id"`
	HId    string        `bson:"hotelId"`
	HLat   float64       `bson:"lat"`
	HLon   float64       `bson:"lon"`
	HRate  float64       `bson:"rate"`
	HPrice float64       `bson:"price"`
}

type Server

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

Server implements the recommendation service

func (*Server) GetRecommendations

func (s *Server) GetRecommendations(ctx context.Context, req *pb.Request) (*pb.Result, error)

GiveRecommendation returns recommendations within a given requirement.

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

Jump to

Keyboard shortcuts

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