servers

package
v0.0.0-...-82c3d49 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddClient

func AddClient(r *http.Request, w http.ResponseWriter, endpoint string)

AddClient must be called from HTTP endpoints with the new clients connected through websocket

func CreateNewFileListener

func CreateNewFileListener(c *gin.Context)

CreateNewFileListener will add to the listener queue a new listener that will write to a file

func CreateNewHTTPListener

func CreateNewHTTPListener(c *gin.Context)

CretaeNewHTTPListener will add to the listeners queue a new listener that will execute an HTTP request to a specified point

func GetAllListeners

func GetAllListeners(c *gin.Context)

GetAllListeners is the "GET /listener" REST handler to return all connected listeners

func GetAllTopics

func GetAllTopics(c *gin.Context)

GetAllTopics is the "GET /topic" REST handler that will return all available topics in the session

func PostMessageOnTopic

func PostMessageOnTopic(c *gin.Context)

PostMessageOnTopic is the "POST /topic/[a topic]/message" REST handler to insert messages in the queue

func StartHTTPServer

func StartHTTPServer(port int, endpoint string)

StartHTTPServer is the starting point of the application. It is called from the main package and will configure all needed endpoints as well as the "default" endpoint to receive messages

Types

This section is empty.

Jump to

Keyboard shortcuts

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