manager

package
v0.0.0-...-909caf6 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRoom

func AddRoom(name, address string) []string

addroom name address

func ChgRoom

func ChgRoom(name, address string) []string

chgroom name address

func DelRoom

func DelRoom(name string) []string

delroom name

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(name, user string) []string

rec name user

func Rent

func Rent(name, user string) []string

rent name user

Types

type Room

type Room struct {
	Name    string   `json: "name"`
	Number  string   `json: "number"`
	Renters []string `json: renters`
}

type RoomList

type RoomList struct {
	Rooms []*Room
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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