api

command
v0.0.0-...-7b2e207 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: AGPL-3.0 Imports: 8 Imported by: 0

README

Platform API

The platform API provides a GRPC service for creating and managing identities, cocoons, releases and other resources.

Start the service:

env SCHEDULER_ADDR=104.199.69.200:4646 \ 
    CONSUL_ADDR=104.199.69.200:8500 \
    DEV_ORDERER_ADDR=127.0.0.1:8001 \
    ENV=production \
    API_VERSION=0.5.0 \
    CONNECTOR_VERSION=0.5.0 \
    go run main.go start

Environment Variables

  • SCHEDULER_ADDR: The address to the scheduler
  • CONSUL_ADDR: The address to the consul server
  • DEV_ORDERER_ADDR: (Optional) The address to an orderer service. If not specified, the platform API will attempt to discover it through consul.
  • ENV (default: development): Setting this to production will fetch and run a pre-built binary of the API as opposed to building from source. This also applies to the connector associated with a cocoon.
  • API_VERSION: This is the version of the API to run.
  • CONNECTOR_VERSION: This is the version of the connector to run.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
proto_api
Package proto_api is a generated protocol buffer package.
Package proto_api is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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