monitoring

package
v0.0.0-...-69a499a Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "monitoring"

ServiceName is the name of the service as defined in the design. This is the same value that is set in the endpoint request contexts under the ServiceKey key.

Variables

View Source
var MethodNames = [1]string{"status"}

MethodNames lists the service method names as defined in the design. These are the same values that are set in the endpoint request contexts under the MethodKey key.

Functions

func MakeInternalServerError

func MakeInternalServerError(err error) *goa.ServiceError

MakeInternalServerError builds a goa.ServiceError from an error.

func NewStatusEndpoint

func NewStatusEndpoint(s Service) goa.Endpoint

NewStatusEndpoint returns an endpoint function that calls the method "status" of service "monitoring".

Types

type Client

type Client struct {
	StatusEndpoint goa.Endpoint
}

Client is the "monitoring" service client.

func NewClient

func NewClient(status goa.Endpoint) *Client

NewClient initializes a "monitoring" service client given the endpoints.

func (*Client) Status

func (c *Client) Status(ctx context.Context) (err error)

Status calls the "status" endpoint of the "monitoring" service. Status may return the following errors:

  • "InternalServerError" (type *goa.ServiceError)
  • error: internal error

type Endpoints

type Endpoints struct {
	Status goa.Endpoint
}

Endpoints wraps the "monitoring" service endpoints.

func NewEndpoints

func NewEndpoints(s Service) *Endpoints

NewEndpoints wraps the methods of the "monitoring" service with endpoints.

func (*Endpoints) Use

func (e *Endpoints) Use(m func(goa.Endpoint) goa.Endpoint)

Use applies the given middleware to all the "monitoring" service endpoints.

type Service

type Service interface {
	// Status implements status.
	Status(context.Context) (err error)
}

Service is the monitoring service interface.

Jump to

Keyboard shortcuts

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