web

package
v0.0.0-...-4489571 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Router

func Router(h *Handler) *mux.Router

Router ...

Types

type Handler

type Handler struct {
	Logger *logger.Logger
}

Handler ...

func (*Handler) HandleProcessObject

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

HandleProcessObject: Example of POST...

func (*Handler) HandlerVersion

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

HandlerVersion: Return the version`s API

type Object

type Object struct {
	ID   int    `json:"code"`
	Name string `json:"name"`
}

Object ...

type ObjectRequest

type ObjectRequest struct {
	Object
}

ObjectRequest ...

type ObjectResponse

type ObjectResponse struct {
	ResponseBodyJSONDefault
	Object *Object `json:"object"`
}

ObjectResponse ...

type ObjectsResponse

type ObjectsResponse struct {
	ResponseBodyJSONDefault
	Objects []*Object `json:"objects"`
}

ObjectsResponse ...

type ResponseBodyJSONDefault

type ResponseBodyJSONDefault struct {
	CodResponse string `json:"codResponse"`
	Message     string `json:"Message"`
}

ResponseBodyJSONDefault ...

type Version

type Version struct {
	Major string `json:"major"`
	Minor string `json:"minor"`
	Patch string `json:"patch"`
}

Version ...

type VersionRequest

type VersionRequest struct {
	Version
}

VersionRequest ...

type VersionResponse

type VersionResponse struct {
	ResponseBodyJSONDefault
	Version *Version `json:"version"`
}

VersionResponse ...

type VersionsResponse

type VersionsResponse struct {
	ResponseBodyJSONDefault
	Versions []*Version `json:"versions"`
}

VersionsResponse ...

Jump to

Keyboard shortcuts

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