api

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2014 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package api provides controllers for the API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivateScheduled

func ActivateScheduled(c util.Context) (err error)

func Deactivated

func Deactivated(c util.Context) (err error)

Deactivated is called by clients to announce that they have deactivated and deleted a broadcast

func DeleteActivation

func DeleteActivation(c util.Context) (err error)

func Download

func Download(c util.Context) (err error)

Download serves the broadcast from blobstore.

func DownloadFinish

func DownloadFinish(c util.Context) (err error)

DownloadFinish is called by clients to announce that they have downloaded the broadcast.

func GetConfig

func GetConfig(c util.Context) (err error)

GetConfig serves the configuration.

func GetDescription

func GetDescription(c util.Context) (err error)

GetDescription responds with the description of a broadcast.

func GetName

func GetName(c util.Context) (err error)

GetName responds with the name of a broadcast.

func GotConfig

func GotConfig(c util.Context) (err error)

GotConfig is called by clients to announce that they have downloaded the broadcast.

func ScheduleActivation

func ScheduleActivation(c util.Context) (err error)

func Status

func Status(c util.Context) (err error)

Status returns information about active broadcasts and config. It returns a JSON like:

{
	"Broadcasts": [
		{
			"Key": "aghkZXZ-Tm9uZXIZCxIMUHJlc2VudGF0aW9uGICAgICAgIAKDA",
			"FileType": "pptx"
		},
		{
			"Key": "aghkZXZ-Tm9uZXIZCxIMUHJlc2VudGF0aW9uGICAgICAwO8KDA",
			"FileType": "ppt"
		}
	]
	"Config": 1383212550
}

func UpdateDescription

func UpdateDescription(c util.Context) (err error)

UpdateDescription changes the description of a broadcast.

func UpdateName

func UpdateName(c util.Context) (err error)

UpdateName changes the name of a broadcast.

Types

This section is empty.

Jump to

Keyboard shortcuts

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