Documentation ¶
Index ¶
- Constants
- type ClientService
- func (s ClientService) Close()
- func (s ClientService) ExecuteContract(id string, argument json.Object, functionArgument json.Object) (result model.ContractExecutionResult, err error)
- func (s ClientService) RegisterCertificate() (err error)
- func (s ClientService) RegisterContract(id string, name string, contractBytes []byte, properties json.Object) (err error)
- func (s ClientService) ValidateLedger(args ...interface{}) (result model.LedgerValidationResult, err error)
Constants ¶
View Source
const JavaMaxIntValue = 2147483647
JavaMaxIntValue defines a value according to Java's max value of int.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientService ¶
type ClientService struct {
// contains filtered or unexported fields
}
ClientService defines the interface of the client service.
func NewClientService ¶
func NewClientService(c config.ClientConfig) (s ClientService, err error)
NewClientService creates ClientService instance.
func (ClientService) Close ¶
func (s ClientService) Close()
Close shuts down underlying connections.
func (ClientService) ExecuteContract ¶
func (s ClientService) ExecuteContract( id string, argument json.Object, functionArgument json.Object, ) (result model.ContractExecutionResult, err error)
ExecuteContract executes a registered contract.
func (ClientService) RegisterCertificate ¶
func (s ClientService) RegisterCertificate() (err error)
RegisterCertificate registers the certificate in the client config to Ledger and Auditor.
func (ClientService) RegisterContract ¶
func (s ClientService) RegisterContract( id string, name string, contractBytes []byte, properties json.Object, ) (err error)
RegisterContract registers contract to Scalar DL networks.
func (ClientService) ValidateLedger ¶
func (s ClientService) ValidateLedger(args ...interface{}) (result model.LedgerValidationResult, err error)
ValidateLedger validates the specified asset between the specified ages.
Click to show internal directories.
Click to hide internal directories.