fields

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fields

type Fields struct {
	*deps.Deps
	// contains filtered or unexported fields
}

Fields defines the handler for all field routes.

func New

func New(d *deps.Deps) *Fields

New

Creates a new fields handler.

func (*Fields) List

func (c *Fields) List(ctx *gin.Context)

List

Filter fields and get layouts based on query params.

Returns http.StatusOK if login was successful. Returns http.StatusInternalServerError if the layouts failed to be obtained.

type Handler

type Handler interface {
	List(ctx *gin.Context)
}

Handler defines methods for fields to interact with the server.

Jump to

Keyboard shortcuts

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