impl

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2019 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusRestService

type StatusRestService struct {
	restMw.FuncRestService
}

func NewStatusRestService

func NewStatusRestService() *StatusRestService

type StatusService

type StatusService struct {
	middleware.FuncGrpcService
}

StatusService provides a service that offers basic status functionality: - Time -> returns UTC epoch time in nanoseconds precision - Version -> returns the current version of the service - Status -> returns the current status of the service

func NewStatusService

func NewStatusService() *StatusService

func (*StatusService) GetGlobalServiceStatus

func (st *StatusService) GetGlobalServiceStatus(ctx context.Context, empty *common.EmptyMessage) (*status.ServerStatusMessage, error)

func (*StatusService) GetServerTime

func (st *StatusService) GetServerTime(ctx context.Context, empty *common.EmptyMessage) (*status.ServerTimeMessage, error)

GetServerTime returns the current UTC server time in nanoseconds

func (*StatusService) GetVersion

func (st *StatusService) GetVersion(ctx context.Context, empty *common.EmptyMessage) (*common.Version, error)

GetVersion returns the current API Version. It is a direct mapping from go-version "github.com/hashicorp/go-version.Version

Jump to

Keyboard shortcuts

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