types

package
v0.0.0-...-d705cfe Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Booking

type Booking struct {
	ID         int32         `json:"id"`
	User       Member        `json:"user"`
	Share      Item          `json:"share"`
	From       time.Time     `json:"from"`
	To         time.Time     `json:"to"`
	Status     BookingStatus `json:"status"`
	StatusTime time.Time     `json:"status-time"`
}

type BookingStatus

type BookingStatus int
const (
	REQUESTED BookingStatus = iota
	CONFIRMED
	REJECTED
)

func (BookingStatus) String

func (bookingStatus BookingStatus) String() string

type Item

type Item struct {
	ID   int32    `json:"id"`
	Name string   `json:"name"`
	Type ItemType `json:"type"`
}

type ItemType

type ItemType int
const (
	CAR ItemType = iota
	BIKE
	VAN
)

func (ItemType) String

func (itemType ItemType) String() string

type Member

type Member struct {
	ID   int32  `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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