handlers

package
v0.0.0-...-07366ea Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Canal

type Canal struct {
	ID       int    `db:"id" json:"id"`
	Title    string `db:"title" json:"title"`
	Duration int    `db:"duration" json:"duration"`
}

type CanalAPI

type CanalAPI struct {
	DB *database.DB
}

func (CanalAPI) ListCanal

func (c CanalAPI) ListCanal(w http.ResponseWriter, r *http.Request)

func (CanalAPI) NewCanal

func (c CanalAPI) NewCanal(w http.ResponseWriter, r *http.Request)

func (CanalAPI) SingleCanal

func (c CanalAPI) SingleCanal(w http.ResponseWriter, r *http.Request)

type MQAPI

type MQAPI struct {
	Logger *log.Logger
	Conn   *amqp.Connection
}

func (MQAPI) WorkQueue

func (m MQAPI) WorkQueue(w http.ResponseWriter, r *http.Request)

type NewCanal

type NewCanal struct {
	Title    string `json:"title" validate:"required,max=6" `
	Duration int    `json:"duration" validate:"required,min=12,max=24"`
}

Jump to

Keyboard shortcuts

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