controllers

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package classification Swagger Example. Swagger Example

Schemes: https
Host: api.somedomain.com
BasePath: /
Version: 1.0.0
License: MIT http://opensource.org/licenses/MIT
Contact: Name<email@somehwere.com> https://www.somewhere.com

Consumes:
- application/json
- application/x-www-form-urlencoded

Produces:
- text/html

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	*revel.Controller
}

func (Application) Destroy

func (c Application) Destroy()

func (Application) EnterDemo

func (c Application) EnterDemo(user, demo string) revel.Result

swagger:operation GET /demo demo

Enter Demo

--- produces: - text/html parameters:

  • name: user in: formData description: user required: true type: string
  • name: demo in: formData description: demo required: true type: string

responses:

'200':
  description: Success
'401':
  description: Invalid User

func (Application) Index

func (c Application) Index() revel.Result

swagger:operation POST /some/route route description

Route Description

--- produces: - text/html responses:

'200':
  description: Success

type LongPolling

type LongPolling struct {
	*revel.Controller
}

func (LongPolling) Leave

func (c LongPolling) Leave(user string) revel.Result

func (LongPolling) Room

func (c LongPolling) Room(user string) revel.Result

func (LongPolling) Say

func (c LongPolling) Say(user, message string) revel.Result

func (LongPolling) WaitMessages

func (c LongPolling) WaitMessages(lastReceived int) revel.Result

type Refresh

type Refresh struct {
	*revel.Controller
}

func (Refresh) Index

func (c Refresh) Index(user string) revel.Result

func (Refresh) Leave

func (c Refresh) Leave(user string) revel.Result

func (Refresh) Room

func (c Refresh) Room(user string) revel.Result

func (Refresh) Say

func (c Refresh) Say(user, message string) revel.Result

type WebSocket

type WebSocket struct {
	*revel.Controller
}

func (WebSocket) Room

func (c WebSocket) Room(user string) revel.Result

func (WebSocket) RoomSocket

func (c WebSocket) RoomSocket(user string, ws revel.ServerWebSocket) revel.Result

Jump to

Keyboard shortcuts

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