service

package
v0.0.0-...-1d506e1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckAvailabilityInput

type CheckAvailabilityInput struct {
	Capacity int64
	Start    time.Time
	End      time.Time
}

type CheckAvailabilityOutput

type CheckAvailabilityOutput struct {
	Rooms []*roomtypes.Room
}

type CheckInInput

type CheckInInput struct{}

type CheckInOutput

type CheckInOutput struct{}

type CheckOutInput

type CheckOutInput struct{}

type CheckOutOutput

type CheckOutOutput struct{}

type Config

type Config struct {
	RoomService         roomsvc.Service
	ReservationsService reservationsvc.Service
	StaysService        staysvc.Service

	KQueue krun.Krun
}

type Service

type Service interface {
	CheckAvailability(ctx context.Context, input *CheckAvailabilityInput) (*CheckAvailabilityOutput, error)
	CheckIn(ctx context.Context, input *CheckInInput) (*CheckInOutput, error)
	CheckOut(ctx context.Context, input *CheckOutInput) (*CheckOutOutput, error)
}

func New

func New(cfg *Config) Service

func NewMeter

func NewMeter(svc Service, mt metric.Meter) (Service, error)

func NewTracer

func NewTracer(svc Service, tr trace.Tracer) Service

Jump to

Keyboard shortcuts

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