Module to ease interaction with Pact's development server & ScalableBFT
go install github.com/jfamousket/go-pact@latest
Create a blake2b
hash
import (
"github.com/jfamousket/go-pact"
)
pact.CreateBlake2Hash(<cmd_string>) string
This functions are same as described in pact-api-documentation
import (
"github.com/jfamousket/go-pact"
)
pact.Send(<valid_cmd_object>, <api_host>) pact.SendResponse
pact.Local(<valid_cmd_object>, <api_host>) pact.LocalResponse
pact.Listen(<request_key>, <api_host>) pact.ListenResponse
pact.Poll(<array_of_request_keys>, <api_host>) pact.PollResponse
See the example
directory in this project, for an example TODO app.
- Improve docs
Built with ❤️ by jfamousket