service

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecuteEngine

type ExecuteEngine struct {
	PathCmd string
}

func (*ExecuteEngine) Do

func (e *ExecuteEngine) Do(payload *Payload) (interface{}, string, error)

type IncogClient

type IncogClient struct {
	Client        *http.Client
	ChainEndpoint string
}

func (*IncogClient) Post

func (i *IncogClient) Post(method string, params interface{}) ([]byte, error)

func (*IncogClient) PostAndReceiveInterface

func (i *IncogClient) PostAndReceiveInterface(method string, params interface{}) (interface{}, []byte, error)

type IncogClientInterface

type IncogClientInterface interface {
	Post() error
	// contains filtered or unexported methods
}

type Parameter

type Parameter struct {
	JsonRpc string      `json:"jsonrpc"`
	Method  string      `json:"method"`
	Params  interface{} `json:"params"`
	Id      uint        `json:"id"`
}

type Payload

type Payload struct {
	Method     string      `json:"method"`
	PrivateKey string      `json:"private_key"`
	Data       interface{} `json:"data"`
}

type Response

type Response struct {
	Result interface{} `json:"Result"`
	Error  string      `json:"Error"`
	Stack  string      `json:"Stack"`
	Method string      `json:"Method"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳