consul

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package consul implements Consul provider

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoWithContext added in v1.6.0

func DoWithContext(ctx context.Context, client *http.Client, req *http.Request, f func(*http.Response, error) error) error

DoWithContext makes a HTTP request with the given context

func Register added in v1.5.2

func Register(f func(name string, provider interface{}) error)

Register registers the provider

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider represents the provider

func (*Provider) Search

func (provider *Provider) Search(ctx context.Context, args map[string]interface{}) ([]map[string]interface{}, error)

Search makes a search

type SearchResult

type SearchResult map[string][]string

SearchResult represent the structure of the search result

Jump to

Keyboard shortcuts

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