rate

package
v0.0.0-...-376a73a Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rate

type Rate struct {
	// contains filtered or unexported fields
}

Rate implements the rate service

func NewRate

func NewRate(a string, p int, db *DatabaseSession, tr opentracing.Tracer) *Rate

NewRate returns a new server

func (*Rate) GetRates

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

GetRates gets rates for hotels for specific date range.

func (*Rate) Run

func (s *Rate) Run() error

Run starts the server

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)

Jump to

Keyboard shortcuts

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