microendpoint: github.com/giantswarm/microendpoint/endpoint/version Index | Files

package version

import "github.com/giantswarm/microendpoint/endpoint/version"


Package Files

endpoint.go error.go response.go


const (
    // Method is the HTTP method this endpoint is registered for.
    Method = "GET"
    // Name identifies the endpoint. It is aligned to the package path.
    Name = "version"
    // Path is the HTTP request path this endpoint is registered for.
    Path = "/"

func IsInvalidConfig Uses

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

type Config Uses

type Config struct {
    // Dependencies.
    Logger  micrologger.Logger
    Service *version.Service

Config represents the configuration used to create a version endpoint.

type Endpoint Uses

type Endpoint struct {

func New Uses

func New(config Config) (*Endpoint, error)

New creates a new configured version endpoint.

func (*Endpoint) Decoder Uses

func (e *Endpoint) Decoder() kithttp.DecodeRequestFunc

func (*Endpoint) Encoder Uses

func (e *Endpoint) Encoder() kithttp.EncodeResponseFunc

func (*Endpoint) Endpoint Uses

func (e *Endpoint) Endpoint() kitendpoint.Endpoint

func (*Endpoint) Method Uses

func (e *Endpoint) Method() string

func (*Endpoint) Middlewares Uses

func (e *Endpoint) Middlewares() []kitendpoint.Middleware

func (*Endpoint) Name Uses

func (e *Endpoint) Name() string

func (*Endpoint) Path Uses

func (e *Endpoint) Path() string

type Response Uses

type Response struct {
    Description    string                 `json:"description"`
    GitCommit      string                 `json:"git_commit"`
    GoVersion      string                 `json:"go_version"`
    Name           string                 `json:"name"`
    OSArch         string                 `json:"os_arch"`
    Source         string                 `json:"source"`
    Version        string                 `json:"version"`
    VersionBundles []versionbundle.Bundle `json:"version_bundles"`

Response is the return value of the service action.

Package version imports 9 packages (graph) and is imported by 8 packages. Updated 2019-08-21. Refresh now. Tools for package owners.