package consul

import "github.com/edgexfoundry/go-mod-configuration/internal/pkg/consul"

Index

Variables

var PrefixChannels map[string]chan bool

Functions

func NewConsulClient

func NewConsulClient(config types.ServiceConfig) (*consulClient, error)

Create new Consul Client. Service details are optional, not needed just for configuration, but required if registering

Types

type MockConsul

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

func NewMockConsul

func NewMockConsul() *MockConsul

func (*MockConsul) Reset

func (mock *MockConsul) Reset()

func (*MockConsul) Start

func (mock *MockConsul) Start() *httptest.Server

Source Files

client.go mock_consul.go

Version
v0.0.8 (latest)
Published
Oct 20, 2020
Platform
linux/amd64
Imports
14 packages
Last checked
5 days ago

Tools for package owners.