clients

package
v0.0.0-...-c9303cd Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

README

Clients package

Packages here provide client libraries for accessing the ecosystem of DiamNet services.

  • auroraclient - programmatic client access to Aurora (use in conjunction with txnbuild)
  • diamnettoml - parse DiamNet.toml files from the internet
  • federation - resolve federation addresses into diamnet account IDs, suitable for use within a transaction
  • aurora (DEPRECATED) - the original Aurora client, now superceded by auroraclient

See GoDoc for more details.

For developers: Adding new client packages

Ideally, each one of our client packages will have commonalities in their API to ease the cost of learning each. It's recommended that we follow a pattern similar to the net/http package's client shape:

A type, Client, is the central type of any client package, and its methods should provide the bulk of the functionality for the package. A DefaultClient var is provided for consumers that don't need client-level customization of behavior. Each method on the Client type should have a corresponding func at the package level that proxies a call through to the default client. For example, http.Get() is the equivalent of http.DefaultClient.Get().

Documentation

Overview

Package clients contains sub-packages that provide client access to the various diamnet services.

Directories

Path Synopsis
Package aurora is DEPRECATED in favour of clients/auroraclient! It used to provide client access to a aurora server, allowing an application to post transactions and lookup ledger information.
Package aurora is DEPRECATED in favour of clients/auroraclient! It used to provide client access to a aurora server, allowing an application to post transactions and lookup ledger information.
Package auroraclient provides client access to a Aurora server, allowing an application to post transactions and look up ledger information.
Package auroraclient provides client access to a Aurora server, allowing an application to post transactions and look up ledger information.
Package diamnetcore is a client library for communicating with an instance of diamnet-core using through the server's HTTP port.
Package diamnetcore is a client library for communicating with an instance of diamnet-core using through the server's HTTP port.
Package hcnetcore is a client library for communicating with an instance of hcnet-core using through the server's HTTP port.
Package hcnetcore is a client library for communicating with an instance of hcnet-core using through the server's HTTP port.

Jump to

Keyboard shortcuts

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