handlers

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: MIT Imports: 28 Imported by: 0

Documentation

Overview

http handler

Index

Constants

This section is empty.

Variables

View Source
var (
	Mux     *bone.Mux
	Context context.Context

	NoBodyStatusCodes []int = []int{
		http.StatusNotFound,
		http.StatusConflict,
	}
)

Functions

func DeleteBlockUsers added in v0.7.0

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

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 GetBlockUsers added in v0.7.0

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

func GetContacts added in v0.7.0

func GetContacts(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 GetUserUnreadCount added in v0.7.1

func GetUserUnreadCount(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 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 PostUser

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

func PutBlockUsers added in v0.7.0

func PutBlockUsers(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 SetBlockUserMux added in v0.7.0

func SetBlockUserMux()

func SetContactMux added in v0.7.0

func SetContactMux()

func SetDeviceMux added in v0.2.0

func SetDeviceMux()

func SetMessageMux

func SetMessageMux()

func SetPprofMux added in v0.6.0

func SetPprofMux()

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