handlers

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2017 License: MIT Imports: 24 Imported by: 2

Documentation

Overview

http handler

Index

Constants

This section is empty.

Variables

View Source
var Mux *bone.Mux

Functions

func ColsHandler

func ColsHandler(fn http.HandlerFunc) http.HandlerFunc

func DeleteDevice added in v0.2.0

func DeleteDevice(w http.ResponseWriter, r *http.Request)

func DeleteRoom

func DeleteRoom(w http.ResponseWriter, r *http.Request)

func DeleteRoomUsers

func DeleteRoomUsers(w http.ResponseWriter, r *http.Request)

func DeleteUser

func DeleteUser(w http.ResponseWriter, r *http.Request)

func GetAsset

func GetAsset(w http.ResponseWriter, r *http.Request)

func GetDevice added in v0.2.0

func GetDevice(w http.ResponseWriter, r *http.Request)

func GetDevices added in v0.2.0

func GetDevices(w http.ResponseWriter, r *http.Request)

func GetMessage

func GetMessage(w http.ResponseWriter, r *http.Request)

func GetRoom

func GetRoom(w http.ResponseWriter, r *http.Request)

func GetRoomMessages

func GetRoomMessages(w http.ResponseWriter, r *http.Request)

func GetRooms

func GetRooms(w http.ResponseWriter, r *http.Request)

func GetUser

func GetUser(w http.ResponseWriter, r *http.Request)

func GetUsers

func GetUsers(w http.ResponseWriter, r *http.Request)

func PostAsset

func PostAsset(w http.ResponseWriter, r *http.Request)

func PostAssetAwsSns

func PostAssetAwsSns(w http.ResponseWriter, r *http.Request)

func PostDevice added in v0.2.0

func PostDevice(w http.ResponseWriter, r *http.Request)

func PostMessages added in v0.2.0

func PostMessages(w http.ResponseWriter, r *http.Request)

func PostRoom

func PostRoom(w http.ResponseWriter, r *http.Request)

func PostRoomUsers

func PostRoomUsers(w http.ResponseWriter, r *http.Request)

func PostUser

func PostUser(w http.ResponseWriter, r *http.Request)

func PutDevice added in v0.2.0

func PutDevice(w http.ResponseWriter, r *http.Request)

func PutRoom

func PutRoom(w http.ResponseWriter, r *http.Request)

func PutRoomUser

func PutRoomUser(w http.ResponseWriter, r *http.Request)

func PutRoomUsers

func PutRoomUsers(w http.ResponseWriter, r *http.Request)

func PutUser

func PutUser(w http.ResponseWriter, r *http.Request)

func SetAssetAwsSnsMux

func SetAssetAwsSnsMux()

func SetAssetMux

func SetAssetMux()

func SetDeviceMux added in v0.2.0

func SetDeviceMux()

func SetMessageMux

func SetMessageMux()

func SetRoomMux

func SetRoomMux()

func SetRoomUserMux

func SetRoomUserMux()

func SetUserMux

func SetUserMux()

func StartServer

func StartServer(ctx context.Context)

Types

type AssetS3SNSRecords

type AssetS3SNSRecords struct {
	Records []Record `json:"Records"`
}

type AwsSNSSubscribeInput

type AwsSNSSubscribeInput struct {
	Type             string `json:"Type"`
	MessageId        string `json:"MessageId"`
	TopicArn         string `json:"TopicArn"`
	Subject          string `json:"Subject"`
	Message          string `json:"Message,omitempty"`
	Timestamp        string `json:"Timestamp"`
	SignatureVersion string `json:"SignatureVersion"`
	Signature        string `json:"Signature"`
	SigningCertURL   string `json:"SigningCertURL"`
	SubscribeURL     string `json:"SubscribeURL,omitempty"`
	UnsubscribeURL   string `json:"UnsubscribeURL,omitempty"`
	Token            string `json:"Token,omitempty"`
}

type Object

type Object struct {
	Etag      string `json:"eTag"`
	Key       string `json:"key"`
	Sequencer string `json:"sequencer"`
	Size      int    `json:"size"`
}

type Record

type Record struct {
	S3 S3 `json:"s3"`
}

type S3

type S3 struct {
	Object Object `json:"object"`
}

Jump to

Keyboard shortcuts

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