resolver

command
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

README

System Resolver Service

Commands

Add peers command
mesg-core service execute SERVICE_ID -t addPeers -d addresses="[\"PEER_IP:50052\"]"
Resolve command
mesg-core service execute SERVICE_ID -t resolve -d serviceID=SERVICE_ID_TO_RESOLVE

Tasks

addPeers

Task key: addPeers

Inputs
Key Type Description
addresses Object
Outputs
error

Output key: error

Output when error

Key Type Description
message String The error's message
success

Output key: success

Output when success

Key Type Description
addresses Object

resolve

Task key: resolve

Inputs
Key Type Description
serviceID String
Outputs
error

Output key: error

Output when error

Key Type Description
message String The error's message
found

Output key: found

A peer matches

Key Type Description
address String
serviceID String
notFound

Output key: notFound

No peers have been found

Key Type Description
serviceID String

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
proto

Jump to

Keyboard shortcuts

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