package types

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

Index

Constants

const DefaultProtocol = "http"

Types

type ServiceConfig

type ServiceConfig struct {
	// The Protocol that should be used to connect to the Configuration service. HTTP is used if not set.
	Protocol string
	// Host is the hostname or IP address of the Configuration service
	Host string
	// Port is the HTTP port of the Configuration service
	Port int
	// Type is the implementation type of the Configuration service, i.e. consul
	Type string
	// BasePath is the base path with in the Configuration service where the your service's configuration is stored
	BasePath string
}

ServiceConfig defines the information need to connect to the Configuration service and optionally register the service for discovery and health checks

func (*ServiceConfig) GetProtocol

func (config *ServiceConfig) GetProtocol() string

func (ServiceConfig) GetUrl

func (config ServiceConfig) GetUrl() string

func (*ServiceConfig) PopulateFromUrl

func (config *ServiceConfig) PopulateFromUrl(providerUrl string) error

Source Files

config.go

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

Tools for package owners.