routes

package
v0.0.0-...-ae47fb0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SubscribeTopicRoute defines Websocket path to subscribe and listen to a topic
	SubscribeTopicRoute = "/subscribe"
	// PublishToTopicRoute defines API path for publishing a message in a topic
	PublishToTopicRoute = "/topics/{topic_id}/messages/new"
)

Variables

View Source
var (

	// Scheme ...
	Scheme string
	// Host ...
	Host string
	// Port ...
	Port string
	// BaseURL provides the complete host URL string
	BaseURL string
)

Functions

func ServiceRoutes

func ServiceRoutes() *mux.Router

ServiceRoutes defines the API routes and their handlers for the service

Types

This section is empty.

Jump to

Keyboard shortcuts

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