models

package
v0.0.0-...-752aa92 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: MIT Imports: 5 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 map[string][]string

func (Booking) String

func (b Booking) String() string

type BookingCollection

type BookingCollection map[string]Booking

func (BookingCollection) String

func (b BookingCollection) String() string

type Catalog

type Catalog map[string]Movie

func (Catalog) String

func (c Catalog) String() string

type Movie

type Movie struct {
	ID       string  `json:"id"`
	Title    string  `json:"title"`
	Rating   float32 `json:"rating"`
	Director string  `json:"director"`
}

func (Movie) MarshalJSON

func (m Movie) MarshalJSON() ([]byte, error)

func (Movie) String

func (m Movie) String() string

func (Movie) URI

func (m Movie) URI() string

type Showtimes

type Showtimes map[string][]string

func (Showtimes) String

func (s Showtimes) String() string

type Timestamp

type Timestamp time.Time

func (*Timestamp) MarshalJSON

func (t *Timestamp) MarshalJSON() ([]byte, error)

func (*Timestamp) String

func (t *Timestamp) String() string

func (*Timestamp) UnmarshalJSON

func (t *Timestamp) UnmarshalJSON(b []byte) error

type User

type User struct {
	Username   string     `json:"id"`
	Name       string     `json:"name"`
	LastActive *Timestamp `json:"last_active"`
}

func (User) String

func (u User) String() string

type UserBookings

type UserBookings map[string][]Movie

func (UserBookings) String

func (u UserBookings) String() string

type UserCollection

type UserCollection map[string]User

func (UserCollection) String

func (u UserCollection) String() string

Jump to

Keyboard shortcuts

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