types

package
v0.0.0-...-9f3e423 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

******************************************************************************

  • Copyright 2018 Dell Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. ******************************************************************************

******************************************************************************

  • Copyright 2018 Dell Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. ******************************************************************************

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrServiceClient

func NewErrServiceClient(statusCode int, body []byte) error

Types

type EndpointParams

type EndpointParams struct {
	ServiceKey  string
	Path        string
	UseRegistry bool
	Url         string
	Interval    int
}

EndpointParams is a type that allows for the passing of common parameters to service clients for initialization. As defined, they are:

  • ServiceKey = the key of the service as found in the service registry (e.g. Consul)
  • Path = the path to the service's endpoint following port number in the URL
  • UseRegistry = an indication of whether or not endpoint information should be obtained from a service registry provider.
  • Url = if a service registry is not being used, then provide the full URL endpoint
  • Interval = the interval in milliseconds governing how often the client polls to keep the endpoint current

type ErrNotFound

type ErrNotFound struct{}

func (ErrNotFound) Error

func (e ErrNotFound) Error() string

type ErrResponseNil

type ErrResponseNil struct{}

func (ErrResponseNil) Error

func (e ErrResponseNil) Error() string

type ErrServiceClient

type ErrServiceClient struct {
	StatusCode int
	// contains filtered or unexported fields
}

func (ErrServiceClient) Error

func (e ErrServiceClient) Error() string

Jump to

Keyboard shortcuts

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