rest

package
v2.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PingResponse

type PingResponse struct {
	Version string
}

PingResponse represents the response object returned by the ping endpoint

func (PingResponse) MarshalJSON

func (p PingResponse) MarshalJSON() ([]byte, error)

MarshalJSON amends PingResponse instances with type metadata.

type SystemEndpoints

type SystemEndpoints struct {
	APIServerVersion string
	DatabaseClient   *mongo.Client
	WriterFactory    queue.WriterFactory
}

SystemEndpoints implements restmachinery.Endpoints to provide System-related URL --> action mappings to a restmachinery.Server.

func (*SystemEndpoints) Register

func (h *SystemEndpoints) Register(router *mux.Router)

Register is invoked by restmachinery.Server to register System-related URL --> action mappings to a restmachinery.Server.

Jump to

Keyboard shortcuts

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