common

package
v0.2.0-dev.48 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoggingClientName       = "Logging"
	CoreCommandClientName   = "Command"
	CoreDataClientName      = "CoreData"
	NotificationsClientName = "Notifications"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BindingInfo

type BindingInfo struct {
	Type           string
	Name           string
	SubscribeTopic string
	PublishTopic   string
}

BindingInfo contains Metadata associated with each binding

type ClientInfo

type ClientInfo struct {
	// Host is the hostname or IP address of a service.
	Host string
	// Port defines the port on which to access a given service
	Port int
	// Protocol indicates the protocol to use when accessing a given service
	Protocol string
}

ClientInfo provides the host and port of another service in the eco-system.

func (ClientInfo) Url

func (c ClientInfo) Url() string

type ConfigurationStruct

type ConfigurationStruct struct {
	Writable            WritableInfo
	Logging             LoggingInfo
	Registry            RegistryInfo
	Service             ServiceInfo
	MessageBus          types.MessageBusConfig
	Binding             BindingInfo
	ApplicationSettings map[string]string
	Clients             map[string]ClientInfo
	Database            db.DatabaseInfo
}

ConfigurationStruct ...

func LoadFromFile

func LoadFromFile(profile string, configDir string) (configuration *ConfigurationStruct, err error)

LoadFromFile loads .toml file for configuration

type EdgeXClients added in v1.0.0

type EdgeXClients struct {
	LoggingClient         logger.LoggingClient
	EventClient           coredata.EventClient
	CommandClient         command.CommandClient
	ValueDescriptorClient coredata.ValueDescriptorClient
	NotificationsClient   notifications.NotificationsClient
}

type LoggingInfo

type LoggingInfo struct {
	EnableRemote bool
	File         string
}

LoggingInfo ...

type PipelineFunction added in v1.0.0

type PipelineFunction struct {
	// Name	string
	Parameters  map[string]string
	Addressable models.Addressable
}

type PipelineInfo added in v1.0.0

type PipelineInfo struct {
	ExecutionOrder           string
	UseTargetTypeOfByteArray bool
	Functions                map[string]PipelineFunction
}

type RegistryInfo

type RegistryInfo struct {
	Host string
	Port int
	Type string
}

RegistryInfo ...

type ServiceInfo

type ServiceInfo struct {
	BootTimeout   int
	CheckInterval string
	ClientMonitor int
	Host          string
	Port          int
	Protocol      string
	StartupMsg    string
	ReadMaxLimit  int
	Timeout       int
}

ServiceInfo ...

type StoreAndForwardInfo added in v1.0.0

type StoreAndForwardInfo struct {
	Enabled       bool
	RetryInterval int
	MaxRetryCount int
}

type WritableInfo

type WritableInfo struct {
	LogLevel        string
	Pipeline        PipelineInfo
	StoreAndForward StoreAndForwardInfo
}

WritableInfo ...

Jump to

Keyboard shortcuts

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