versionhandler

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

Response contains the response from a version request

type Version

type Version struct {
	// contains filtered or unexported fields
}

Version handles version requests

func New

func New(channelID, basePath, module, version string) *Version

New returns a new version handler

func (*Version) Handler

func (h *Version) Handler() common.HTTPRequestHandler

Handler returns the request handler

func (*Version) Method

func (h *Version) Method() string

Method returns the HTTP method

func (*Version) Path

func (h *Version) Path() string

Path returns the context path

Jump to

Keyboard shortcuts

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