manager

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: GPL-3.0 Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoom

func AddRoom(suite, room, number string) []string

addroom suite room number

func AddSuite

func AddSuite(suite string) []string

addSuite suite

func DelRoom

func DelRoom(suite, room string) []string

delRoom suite room

func DelSuite

func DelSuite(suite string) []string

delSuite suite

func List

func List() []string

List

func New

func New(port int, ten tenant.Tenant, brk breaker.Breaker, timeout time.Duration) *manager

func Rec

func Rec(suite, renter string) []string

rec suite renter

func Rent

func Rent(suite, renter string) []string

rent suite renter

Types

type Room

type Room struct {
	Name   string `json: "name"`
	Number string `json: "number"`
}

type Suite

type Suite struct {
	Name    string   `json: "name"`
	Rooms   []*Room  `json: "rooms"`
	Renters []string `json: "renters"`
}

type SuiteList

type SuiteList struct {
	Suites []*Suite `json: "suites"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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