rate

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RatePlans

type RatePlans []*pb.RatePlan

func (RatePlans) Len

func (r RatePlans) Len() int

func (RatePlans) Less

func (r RatePlans) Less(i, j int) bool

func (RatePlans) Swap

func (r RatePlans) Swap(i, j int)

type Server

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

Server implements the rate service

func (*Server) GetRates

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

GetRates gets rates for hotels for specific date range.

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 rate is a generated protocol buffer package.
Package rate is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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