endpoint

package
v0.0.0-...-bfb259f Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest struct {
	RoomID string

	Start time.Time
	End   time.Time
}

type CreateResponse

type CreateResponse struct {
	Reservation *types.Reservation
}

type Endpoints

type Endpoints struct {
	ListEndpoint   kitendpoint.Endpoint
	CreateEndpoint kitendpoint.Endpoint
}

func New

func New(svc service.Service) *Endpoints

type ListRequest

type ListRequest struct {
	RoomID string
	Offset int64
	Limit  int64

	Start time.Time
	End   time.Time
}

type ListResponse

type ListResponse struct {
	Reservations []*types.Reservation
	Total        int64
}

Jump to

Keyboard shortcuts

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