An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/fluhus/rpk

Package rpk provides simple RPC between Javascript and Go. The package converts objects to RPC handlers that call their exported methods. The server defines the exported RPC interface through the methods of a type. The client needs to fetch the complementary Javascript code. The methods of an RPC object must: (1) have at most 1 input argument, which should be JSON encodable (2) have at most 2 outputs: 1 optional value of any JSON encodable type, and an optional error. If using 2 outputs, the error should come second. Unexported methods are ignored and do not have any restriction. The Javascript code exposes a single function. Returns an RPK object, which will have the exported methods of the Go object that handles that URL. Boolean. Indicates whether this RPK object is ready to be called. Adds a listener that will be called when myRpkObject finishes initializing. If successful, error will be null. Else, error will be a string describing the problem. Several listeners can be added. They will be called by order of adding. Calls a Go method. Param should be of the type expected by the Go method. If the Go method expects no input, then param should be omitted. On success, error will be null and data will contain the output (if any). On error, error will be a string describing the problem.

Ecosystem
proxy.golang.org
Latest Release
v0.0.0-20180316142011-0444c5c931ed
about 8 years ago
Versions
1
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/fluhus/rpk
spec
License MIT
Namespace github.com/fluhus
First Release about 8 years ago
Last Synced 2 days ago
Repository
Stars 0 on GitHub
Forks 0 on GitHub
Rankings on proxy.golang.org
Overall Top 8.2%