api

package
v0.0.0-...-655ee65 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIURLStatus = "/status"

	APIURLJanusWebhook = "/api/v1/janus-gateway"
)

API URL used by the HTTP router

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(state state.ManagerInterface, client rabbitmq.ClientInterface) *gin.Engine

NewRouter returns the gin router

Types

type JanusController

type JanusController struct {
	// contains filtered or unexported fields
}

JanusController container for end-points

func NewJanusController

func NewJanusController(state state.ManagerInterface, client rabbitmq.ClientInterface) *JanusController

NewJanusController returns a new StatusController

func (JanusController) Webhook

func (h JanusController) Webhook(c *gin.Context)

Webhook responds to POST /api/v1/metadata/workflows

type StatusController

type StatusController struct{}

StatusController contains status-related end-points

func NewStatusController

func NewStatusController() *StatusController

NewStatusController returns a new StatusController

func (StatusController) Status

func (h StatusController) Status(c *gin.Context)

Status responds to GET /status

Jump to

Keyboard shortcuts

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