package
0.0.0-20201006150613-7b61fee251ca
Repository: https://github.com/circutor/edgex.git
Documentation: pkg.go.dev

# README

README

This package contains the metadata client written in the Go programming language. The metadata client is used by Go services or other Go code to communicate with the EdgeX core-metadata microservice (regardless of underlying implemenation type) by sending REST requests to the service's API endpoints.

How To Use

To use the core-metadata client package you first need to import the library into your project:

import "github.com/Circutor/edgex/pkg/clients/metadata"

As an example of use, to find a device using the Metadata client, first create a new device client (see core-data init.go)

mdc = metadata.NewDeviceClient(params, types.Endpoint{})

And then use the device client to located a device by Device struct (see core-data event.go)

_, err := mdc.CheckForDevice(device)

# Packages

No description provided by the author

# Functions

Return an instance of AddressableClient */.
Return an instance of CommandClient */.
Return an instance of DeviceClient */.
Return an instance of DeviceProfileClient.
Return an instance of DeviceServiceClient */.
Return an instance of ProvisionWatcherClient */.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Addressable client for interacting with the addressable section of metadata */.
Command client for interacting with the command section of metadata */.
Device client for interacting with the device section of metadata */.
Device Profile client for interacting with the device profile section of metadata.
Service client for interacting with the device service section of metadata */.
Provision Watcher client for interacting with the provision watcher section of metadata */.