contracts_service

package
v0.0.0-...-887b451 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractsService

type ContractsService struct {
	BCOSClient bcos.BCOSChain
	Logger     *log.Logger
}

ContractsService defines the contracts service

func MakeContractsService

func MakeContractsService(config *viper.Viper) ContractsService

MakeContractsService builds a ContractsService instance from the given config

func NewContractsService

func NewContractsService(bcosClient bcos.BCOSChain, logger *log.Logger) ContractsService

NewContractsService constructs a new ContractsService instance

func (ContractsService) Callback

func (s ContractsService) Callback(reqCtxID, reqID, input string) (output string, result string)

Callback implements the iservice.RespondCallback interface

func (ContractsService) Invoke

func (s ContractsService) Invoke(
	args string,
) (string, error)

Invoke initiates the function invocation with the given args

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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