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
Click to show internal directories.
Click to hide internal directories.