connectorhub

command
v0.0.0-...-3cbb637 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package connectorhub demonstrates usage of the events lib.

Bring up the local network `make up` and start the service running:

go run . start

The service will listen for events, retrieve the request, process the request using a stub, and return a stub response.

You can trigger events using this script in `fabric/` dir:

> cd fabric && ./client.sh create_claim '[{}]'

{
 "claim": {
   "claim_id": "9b195776-961e-4d2b-9820-efc421f8959a",
   "state": "CLAIM_STATE_NEW"
 }
}

By default the service uses a file checkpointer, stored at `/tmp/checkpoint.tmp`. If you wipe your network make sure you also wipe your checkpoint file, otherwise the service gets stuck trying to fetch future blocks.

NOTE: there's something not quite right with the shiroclient-gw notify and phylum version. When running ./client.sh if you get "Method not found", you can try running `make init`, or deleting build/phylum_version and running `make init`. If that still doesn't fix it, run `make down up`, wait a few seconds, and `cd fabric && make init` again.

Directories

Path Synopsis
internal
chaininfo
Package chaininfo is a library for processing fabric protobufs, and Luther specific data structures maintained on-chain.
Package chaininfo is a library for processing fabric protobufs, and Luther specific data structures maintained on-chain.
events
Package events is a library for retrieving events issued by Luther.
Package events is a library for retrieving events issued by Luther.
shirorpc
Package shirorpc has utilities for constructing messages compatible with shiroclient and substrate.
Package shirorpc has utilities for constructing messages compatible with shiroclient and substrate.

Jump to

Keyboard shortcuts

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