core-data-go

command module
v0.0.0-...-58619b9 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

README

README

This repository is for the core data microservice for EdgeXFoundry written in the Go programming language. The core data microservice is responsible for storing events and readings from device services and exposing these data through the export distro microservice.

What is this repository for?
  • Core data microservice for EdgeXFoundry
Installation

This project uses Glide for dependency management - https://glide.sh/ To pull the dependencies and run the project, do the following:

go get github.com/edgexfoundry/core-data-go
cd $GOPATH/src/github.com/edgexfoundry/core-data-go
glide up

This project also uses ZeroMQ for sending messages to the export distro microservice. If you use the Dockerfile to build and run a Docker image, then you do not have to worry about this dependecy as Docker handles it for you. If you want to build the project locally, then you need to install ZeroMQ on your computer.

Go to the installation directory for ZeroMQ and make sure there is a /bin folder and an /include folder. There are 2 environment variables that you need to set for the build to suceed:

  • CGO_LDFLAGS = "-L [PATH_TO_BIN_FOLDER]"
  • CGO_CPPFLAGS = "-I [PATH_TO_INCLUDE_FOLDER]"

These variables will tell the CGO compiler where to find the C dependecies.

Docker

This project can be built using Docker, and a Dockerfile is included in the repo. Make sure you have already run 'glide up' to update the dependecies. To build using the Docker file, run the following:

cd $GOPATH/src/github.com/edgexfoundry/core-data-go
docker build -t "[DOCKER_IMAGE_NAME]" .

To create a containter from the image run the following:

docker create --name "[DOCKER_CONTAINER_NAME]" --network "[DOCKER_NETWORK]" [DOCKER_IMAGE_NAME]

To run the container:

docker start [DOCKER_CONTAINER_NAME]

Documentation

Overview

******************************************************************************

  • Copyright 2017 Dell Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. *
  • @microservice: core-data-go library
  • @author: Ryan Comer, Dell
  • @version: 0.5.0 ******************************************************************************

******************************************************************************

  • Copyright 2017 Dell Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. *
  • @microservice: core-data-go library
  • @author: Ryan Comer, Dell
  • @version: 0.5.0 ******************************************************************************

******************************************************************************

  • Copyright 2017 Dell Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. *
  • @microservice: core-data-go library
  • @author: Ryan Comer, Dell
  • @version: 0.5.0 ******************************************************************************

******************************************************************************

  • Copyright 2017 Dell Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. *
  • @microservice: core-data-go library
  • @author: Ryan Comer, Dell
  • @version: 0.5.0 ******************************************************************************

******************************************************************************

  • Copyright 2017 Dell Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. *
  • @microservice: core-data-go library
  • @author: Ryan Comer, Dell
  • @version: 0.5.0 ******************************************************************************

******************************************************************************

  • Copyright 2017 Dell Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. *
  • @microservice: core-data-go library
  • @author: Ryan Comer, Dell
  • @version: 0.5.0 ******************************************************************************

******************************************************************************

  • Copyright 2017 Dell Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  • in compliance with the License. You may obtain a copy of the License at *
  • http://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software distributed under the License
  • is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  • or implied. See the License for the specific language governing permissions and limitations under
  • the License. *
  • @microservice: core-data-go library
  • @author: Ryan Comer, Dell
  • @version: 0.5.0 ******************************************************************************

Directories

Path Synopsis
******************************************************************************
******************************************************************************
******************************************************************************
******************************************************************************
******************************************************************************
******************************************************************************

Jump to

Keyboard shortcuts

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