controllers

package
v0.0.0-...-489c37e Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShowTable = "show_table"
	EditTable = "edit_table"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TableForm

type TableForm struct {
	Text   string    `schema:"text"`
	CodeID uuid.UUID `schema:"code_id"`
}

type Tables

type Tables struct {
	New       *views.View
	ShowView  *views.View
	IndexView *views.View
	EditView  *views.View
	// contains filtered or unexported fields
}

func NewTables

func NewTables(s models.TableService, r *mux.Router) *Tables

func (*Tables) Create

func (t *Tables) Create(w http.ResponseWriter, r *http.Request)

Create POST /tables

func (*Tables) Edit

func (t *Tables) Edit(w http.ResponseWriter, r *http.Request)

Edit GET /index/:id/edit

func (*Tables) Index

func (t *Tables) Index(w http.ResponseWriter, r *http.Request)

Index GET /index

func (*Tables) Show

func (t *Tables) Show(w http.ResponseWriter, r *http.Request)

Show GET /index/:id

func (*Tables) TextUpload

func (t *Tables) TextUpload(w http.ResponseWriter, r *http.Request)

TextUpload POST /tables/:id/text

func (*Tables) Update

func (t *Tables) Update(w http.ResponseWriter, r *http.Request)

Update POST /index/:id/update

Jump to

Keyboard shortcuts

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