appfightinstance

package
v0.0.0-...-a9c8cbe Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package appfightinstance - REST API handlers

Index

Constants

View Source
const HandlerName string = "appfight"

HandlerName -

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionResponseData

type CollectionResponseData struct {
	Data   []api.AppFightInstance `json:"data"`
	Errors []handler.ErrorData    `json:"errors"`
}

CollectionResponseData -

type Handler

type Handler struct {
	handler.Base
}

Handler -

func NewHandler

func NewHandler(e env.Env, l zerolog.Logger, d *sqlx.DB) (*Handler, error)

NewHandler -

func (*Handler) Get

func (h *Handler) Get(w http.ResponseWriter, r *http.Request)

Get -

func (*Handler) GetCollection

func (h *Handler) GetCollection(w http.ResponseWriter, r *http.Request)

GetCollection -

type RequestData

type RequestData struct {
	Data api.AppFightInstance `json:"data"`
}

RequestData -

type ResponseData

type ResponseData struct {
	Data   api.AppFightInstance `json:"data"`
	Errors []handler.ErrorData  `json:"errors"`
}

ResponseData -

Jump to

Keyboard shortcuts

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