types

package
v0.0.0-...-63bd27d Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkers

type Checkers interface {
	CheckResultEquals(reference string)
	CheckResultContains(reference string)
	CheckErrorEquals(errMessage string)
	CheckErrorIsNil()
}

type Getters

type Getters interface {
	TxID() string
	RawResult() ([]byte, []byte)
	ErrorCode() int32
}

type InvokeResult

type InvokeResult struct {
	// contains filtered or unexported fields
}

func (*InvokeResult) CheckErrorEquals

func (ir *InvokeResult) CheckErrorEquals(errMessage string)

func (*InvokeResult) CheckErrorIsNil

func (ir *InvokeResult) CheckErrorIsNil()

func (*InvokeResult) CheckResultContains

func (ir *InvokeResult) CheckResultContains(reference string)

func (*InvokeResult) CheckResultEquals

func (ir *InvokeResult) CheckResultEquals(reference string)

func (*InvokeResult) ErrorCode

func (ir *InvokeResult) ErrorCode() int32

func (*InvokeResult) RawResult

func (ir *InvokeResult) RawResult() ([]byte, []byte)

func (*InvokeResult) SetErrorCode

func (ir *InvokeResult) SetErrorCode(errorCode int32)

func (*InvokeResult) SetMessage

func (ir *InvokeResult) SetMessage(message []byte)

func (*InvokeResult) SetResponse

func (ir *InvokeResult) SetResponse(response []byte)

func (*InvokeResult) SetTxID

func (ir *InvokeResult) SetTxID(txID string)

func (*InvokeResult) TxID

func (ir *InvokeResult) TxID() string

type QueryResult

type QueryResult struct {
	// contains filtered or unexported fields
}

func (*QueryResult) CheckBalance

func (qr *QueryResult) CheckBalance(expectedBalance string)

func (*QueryResult) CheckErrorEquals

func (qr *QueryResult) CheckErrorEquals(errMessage string)

func (*QueryResult) CheckErrorIsNil

func (qr *QueryResult) CheckErrorIsNil()

func (*QueryResult) CheckIndustrialBalance

func (qr *QueryResult) CheckIndustrialBalance(expectedGroup, expectedBalance string)

func (*QueryResult) CheckResponseWithFunc

func (qr *QueryResult) CheckResponseWithFunc(responseCheckFunc func([]byte) string)

func (*QueryResult) CheckResultContains

func (qr *QueryResult) CheckResultContains(reference string)

func (*QueryResult) CheckResultEquals

func (qr *QueryResult) CheckResultEquals(reference string)

func (*QueryResult) ErrorCode

func (qr *QueryResult) ErrorCode() int32

func (*QueryResult) RawResult

func (qr *QueryResult) RawResult() ([]byte, []byte)

func (*QueryResult) SetErrorCode

func (qr *QueryResult) SetErrorCode(errorCode int32)

func (*QueryResult) SetMessage

func (qr *QueryResult) SetMessage(message []byte)

func (*QueryResult) SetResponse

func (qr *QueryResult) SetResponse(response []byte)

func (*QueryResult) SetTxID

func (qr *QueryResult) SetTxID(txID string)

func (*QueryResult) TxID

func (qr *QueryResult) TxID() string

type ResultInterface

type ResultInterface interface {
	Setters
	Getters
	Checkers
}

type Setters

type Setters interface {
	SetTxID(string)
	SetResponse(response []byte)
	SetMessage(message []byte)
	SetErrorCode(errorCode int32)
}

Jump to

Keyboard shortcuts

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