version

package
v0.0.0-...-1276dd2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package version ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetVersionBody

type GetVersionBody struct {
	Result     string `json:"result"`
	Version    string `json:"version"`
	ServerTime int64  `json:"server_time"`
}

GetVersionBody on GET /version

type Handler

type Handler struct {
	C *ctx.Context
}

Handler is an application context carrier

func (*Handler) GetVersion

func (h *Handler) GetVersion(c echo.Context) error

GetVersion is a GET /version handler swagger:operation GET /version version GetVersion

Returns server time and version, also can be used as a healthcheck

--- responses:

200:
  description: Get server version.
  schema:
    $ref: '#/definitions/GetVersionBody'

Jump to

Keyboard shortcuts

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