Documentation ¶
Index ¶
- func NewResty(l Logger) *resty.Client
- type FireFlyClient
- func (client *FireFlyClient) BroadcastBlobMessage(t *testing.T, topic string) (*core.Data, *resty.Response, error)
- func (client *FireFlyClient) BroadcastMessage(t *testing.T, topic string, data *core.DataRefOrValue, confirm bool) (*resty.Response, error)
- func (client *FireFlyClient) BroadcastMessageAsIdentity(t *testing.T, did, topic string, data *core.DataRefOrValue, confirm bool) (*resty.Response, error)
- func (client *FireFlyClient) BurnTokens(t *testing.T, burn *core.TokenTransferInput, confirm bool) *core.TokenTransfer
- func (client *FireFlyClient) ClaimCustomIdentity(t *testing.T, key, name, desc string, profile fftypes.JSONObject, ...) *core.Identity
- func (client *FireFlyClient) CleanupExistingSubscription(t *testing.T, namespace, name string)
- func (client *FireFlyClient) CreateBlob(t *testing.T, dt *core.DatatypeRef) *core.Data
- func (client *FireFlyClient) CreateContractAPI(t *testing.T, name string, ffiReference *fftypes.FFIReference, ...) (interface{}, error)
- func (client *FireFlyClient) CreateContractAPIListener(t *testing.T, apiName, eventName, topic string) (*core.ContractListener, error)
- func (client *FireFlyClient) CreateContractListener(t *testing.T, event *fftypes.FFIEvent, location *fftypes.JSONObject) *core.ContractListener
- func (client *FireFlyClient) CreateDatatype(t *testing.T, datatype *core.Datatype, confirm bool) *core.Datatype
- func (client *FireFlyClient) CreateFFI(t *testing.T, ffi *fftypes.FFI) (interface{}, error)
- func (client *FireFlyClient) CreateFFIContractListener(t *testing.T, ffiReference *fftypes.FFIReference, eventPath string, ...) *core.ContractListener
- func (client *FireFlyClient) CreateSubscription(t *testing.T, input interface{}, expectedStatus int) *core.Subscription
- func (client *FireFlyClient) CreateTokenPool(t *testing.T, pool *core.TokenPool, confirm bool) *core.TokenPool
- func (client *FireFlyClient) DeleteContractListener(t *testing.T, id *fftypes.UUID)
- func (client *FireFlyClient) DeleteSubscription(t *testing.T, id *fftypes.UUID)
- func (client *FireFlyClient) GetBlob(t *testing.T, data *core.Data, expectedStatus int) []byte
- func (client *FireFlyClient) GetBlockchainEvent(t *testing.T, eventID string) *core.BlockchainEvent
- func (client *FireFlyClient) GetBlockchainEvents(t *testing.T, startTime time.Time) (events []*core.BlockchainEvent)
- func (client *FireFlyClient) GetContractEvents(t *testing.T, startTime time.Time, subscriptionID *fftypes.UUID) (events []*core.BlockchainEvent)
- func (client *FireFlyClient) GetContractListeners(t *testing.T, startTime time.Time) (subs []*core.ContractListener)
- func (client *FireFlyClient) GetData(t *testing.T, startTime time.Time) (data core.DataArray)
- func (client *FireFlyClient) GetDataByID(t *testing.T, id *fftypes.UUID) *core.Data
- func (client *FireFlyClient) GetDataForMessage(t *testing.T, startTime time.Time, msgID *fftypes.UUID) (data core.DataArray)
- func (client *FireFlyClient) GetEvent(t *testing.T, eventID string) *core.Event
- func (client *FireFlyClient) GetIdentity(t *testing.T, id *fftypes.UUID) *core.Identity
- func (client *FireFlyClient) GetIdentityBlockchainKeys(t *testing.T, identityID *fftypes.UUID, expectedStatus int) (verifiers []*core.Verifier)
- func (client *FireFlyClient) GetMessageEvents(t *testing.T, startTime time.Time, topic string, expectedStatus int) (events []*core.EnrichedEvent)
- func (client *FireFlyClient) GetMessages(t *testing.T, startTime time.Time, msgType core.MessageType, topic string) (msgs []*core.Message)
- func (client *FireFlyClient) GetNamespaces() (*resty.Response, error)
- func (client *FireFlyClient) GetOperations(t *testing.T, startTime time.Time) (operations []*core.Operation)
- func (client *FireFlyClient) GetOrganization(t *testing.T, idOrName string) *core.Identity
- func (client *FireFlyClient) GetOrgs(t *testing.T) (orgs []*core.Identity)
- func (client *FireFlyClient) GetStatus() (*core.NamespaceStatus, *resty.Response, error)
- func (client *FireFlyClient) GetTokenAccountPools(t *testing.T, identity string) (pools []*core.TokenAccountPool)
- func (client *FireFlyClient) GetTokenAccounts(t *testing.T, poolID *fftypes.UUID) (accounts []*core.TokenAccount)
- func (client *FireFlyClient) GetTokenApprovals(t *testing.T, poolID *fftypes.UUID) (approvals []*core.TokenApproval)
- func (client *FireFlyClient) GetTokenBalance(t *testing.T, poolID *fftypes.UUID, tokenIndex, key string) (account *core.TokenBalance)
- func (client *FireFlyClient) GetTokenPools(t *testing.T, startTime time.Time) (pools []*core.TokenPool)
- func (client *FireFlyClient) GetTokenTransfers(t *testing.T, poolID *fftypes.UUID) (transfers []*core.TokenTransfer)
- func (client *FireFlyClient) GetVerifiers(t *testing.T) []*core.Verifier
- func (client *FireFlyClient) InvokeContractAPIMethod(t *testing.T, apiName string, methodName string, input *fftypes.JSONAny) (interface{}, error)
- func (client *FireFlyClient) InvokeContractMethod(t *testing.T, req *core.ContractCallRequest) (interface{}, error)
- func (client *FireFlyClient) MintTokens(t *testing.T, mint *core.TokenTransferInput, confirm bool) *core.TokenTransfer
- func (client *FireFlyClient) NetworkAction(t *testing.T, action core.NetworkActionType)
- func (client *FireFlyClient) PrivateBlobMessageDatatypeTagged(t *testing.T, topic string, members []core.MemberInput, startTime time.Time) (*core.Data, *resty.Response, error)
- func (client *FireFlyClient) PrivateMessage(topic string, data *core.DataRefOrValue, members []core.MemberInput, ...) (*resty.Response, error)
- func (client *FireFlyClient) PrivateMessageWithKey(key, topic string, data *core.DataRefOrValue, members []core.MemberInput, ...) (*resty.Response, error)
- func (client *FireFlyClient) QueryContractAPIMethod(t *testing.T, apiName string, methodName string, input *fftypes.JSONAny) (interface{}, error)
- func (client *FireFlyClient) QueryContractMethod(t *testing.T, req *core.ContractCallRequest) (interface{}, error)
- func (client *FireFlyClient) RegisterSelfNode(t *testing.T, confirm bool)
- func (client *FireFlyClient) RegisterSelfOrg(t *testing.T, confirm bool)
- func (client *FireFlyClient) RequestReply(t *testing.T, data *core.DataRefOrValue, orgNames []string, tag string, ...) *core.MessageInOut
- func (client *FireFlyClient) TokenApproval(t *testing.T, approval *core.TokenApprovalInput, confirm bool) *core.TokenApproval
- func (client *FireFlyClient) TransferTokens(t *testing.T, transfer *core.TokenTransferInput, confirm bool) *core.TokenTransfer
- func (client *FireFlyClient) WebSocket(t *testing.T, query string, authHeader http.Header) *websocket.Conn
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FireFlyClient ¶
type FireFlyClient struct { Hostname string Namespace string Client *resty.Client // contains filtered or unexported fields }
func NewFireFly ¶
func NewFireFly(l Logger, hostname, namespace string) *FireFlyClient
func (*FireFlyClient) BroadcastBlobMessage ¶
func (*FireFlyClient) BroadcastMessage ¶
func (client *FireFlyClient) BroadcastMessage(t *testing.T, topic string, data *core.DataRefOrValue, confirm bool) (*resty.Response, error)
func (*FireFlyClient) BroadcastMessageAsIdentity ¶
func (client *FireFlyClient) BroadcastMessageAsIdentity(t *testing.T, did, topic string, data *core.DataRefOrValue, confirm bool) (*resty.Response, error)
func (*FireFlyClient) BurnTokens ¶
func (client *FireFlyClient) BurnTokens(t *testing.T, burn *core.TokenTransferInput, confirm bool) *core.TokenTransfer
func (*FireFlyClient) ClaimCustomIdentity ¶
func (*FireFlyClient) CleanupExistingSubscription ¶
func (client *FireFlyClient) CleanupExistingSubscription(t *testing.T, namespace, name string)
func (*FireFlyClient) CreateBlob ¶
func (client *FireFlyClient) CreateBlob(t *testing.T, dt *core.DatatypeRef) *core.Data
func (*FireFlyClient) CreateContractAPI ¶
func (client *FireFlyClient) CreateContractAPI(t *testing.T, name string, ffiReference *fftypes.FFIReference, location *fftypes.JSONAny) (interface{}, error)
func (*FireFlyClient) CreateContractAPIListener ¶
func (client *FireFlyClient) CreateContractAPIListener(t *testing.T, apiName, eventName, topic string) (*core.ContractListener, error)
func (*FireFlyClient) CreateContractListener ¶
func (client *FireFlyClient) CreateContractListener(t *testing.T, event *fftypes.FFIEvent, location *fftypes.JSONObject) *core.ContractListener
func (*FireFlyClient) CreateDatatype ¶
func (*FireFlyClient) CreateFFIContractListener ¶
func (client *FireFlyClient) CreateFFIContractListener(t *testing.T, ffiReference *fftypes.FFIReference, eventPath string, location *fftypes.JSONObject) *core.ContractListener
func (*FireFlyClient) CreateSubscription ¶
func (client *FireFlyClient) CreateSubscription(t *testing.T, input interface{}, expectedStatus int) *core.Subscription
func (*FireFlyClient) CreateTokenPool ¶
func (*FireFlyClient) DeleteContractListener ¶
func (client *FireFlyClient) DeleteContractListener(t *testing.T, id *fftypes.UUID)
func (*FireFlyClient) DeleteSubscription ¶
func (client *FireFlyClient) DeleteSubscription(t *testing.T, id *fftypes.UUID)
func (*FireFlyClient) GetBlockchainEvent ¶
func (client *FireFlyClient) GetBlockchainEvent(t *testing.T, eventID string) *core.BlockchainEvent
func (*FireFlyClient) GetBlockchainEvents ¶
func (client *FireFlyClient) GetBlockchainEvents(t *testing.T, startTime time.Time) (events []*core.BlockchainEvent)
func (*FireFlyClient) GetContractEvents ¶
func (client *FireFlyClient) GetContractEvents(t *testing.T, startTime time.Time, subscriptionID *fftypes.UUID) (events []*core.BlockchainEvent)
func (*FireFlyClient) GetContractListeners ¶
func (client *FireFlyClient) GetContractListeners(t *testing.T, startTime time.Time) (subs []*core.ContractListener)
func (*FireFlyClient) GetDataByID ¶
func (*FireFlyClient) GetDataForMessage ¶
func (*FireFlyClient) GetIdentity ¶
func (*FireFlyClient) GetIdentityBlockchainKeys ¶
func (*FireFlyClient) GetMessageEvents ¶
func (client *FireFlyClient) GetMessageEvents(t *testing.T, startTime time.Time, topic string, expectedStatus int) (events []*core.EnrichedEvent)
func (*FireFlyClient) GetMessages ¶
func (client *FireFlyClient) GetMessages(t *testing.T, startTime time.Time, msgType core.MessageType, topic string) (msgs []*core.Message)
func (*FireFlyClient) GetNamespaces ¶
func (client *FireFlyClient) GetNamespaces() (*resty.Response, error)
func (*FireFlyClient) GetOperations ¶
func (*FireFlyClient) GetOrganization ¶
func (*FireFlyClient) GetOrgs ¶
func (client *FireFlyClient) GetOrgs(t *testing.T) (orgs []*core.Identity)
func (*FireFlyClient) GetStatus ¶
func (client *FireFlyClient) GetStatus() (*core.NamespaceStatus, *resty.Response, error)
func (*FireFlyClient) GetTokenAccountPools ¶
func (client *FireFlyClient) GetTokenAccountPools(t *testing.T, identity string) (pools []*core.TokenAccountPool)
func (*FireFlyClient) GetTokenAccounts ¶
func (client *FireFlyClient) GetTokenAccounts(t *testing.T, poolID *fftypes.UUID) (accounts []*core.TokenAccount)
func (*FireFlyClient) GetTokenApprovals ¶
func (client *FireFlyClient) GetTokenApprovals(t *testing.T, poolID *fftypes.UUID) (approvals []*core.TokenApproval)
func (*FireFlyClient) GetTokenBalance ¶
func (client *FireFlyClient) GetTokenBalance(t *testing.T, poolID *fftypes.UUID, tokenIndex, key string) (account *core.TokenBalance)
func (*FireFlyClient) GetTokenPools ¶
func (*FireFlyClient) GetTokenTransfers ¶
func (client *FireFlyClient) GetTokenTransfers(t *testing.T, poolID *fftypes.UUID) (transfers []*core.TokenTransfer)
func (*FireFlyClient) GetVerifiers ¶
func (client *FireFlyClient) GetVerifiers(t *testing.T) []*core.Verifier
func (*FireFlyClient) InvokeContractAPIMethod ¶
func (*FireFlyClient) InvokeContractMethod ¶
func (client *FireFlyClient) InvokeContractMethod(t *testing.T, req *core.ContractCallRequest) (interface{}, error)
func (*FireFlyClient) MintTokens ¶
func (client *FireFlyClient) MintTokens(t *testing.T, mint *core.TokenTransferInput, confirm bool) *core.TokenTransfer
func (*FireFlyClient) NetworkAction ¶
func (client *FireFlyClient) NetworkAction(t *testing.T, action core.NetworkActionType)
func (*FireFlyClient) PrivateBlobMessageDatatypeTagged ¶
func (*FireFlyClient) PrivateMessage ¶
func (client *FireFlyClient) PrivateMessage(topic string, data *core.DataRefOrValue, members []core.MemberInput, tag string, txType core.TransactionType, confirm bool, startTime time.Time) (*resty.Response, error)
func (*FireFlyClient) PrivateMessageWithKey ¶
func (client *FireFlyClient) PrivateMessageWithKey(key, topic string, data *core.DataRefOrValue, members []core.MemberInput, tag string, txType core.TransactionType, confirm bool, startTime time.Time) (*resty.Response, error)
func (*FireFlyClient) QueryContractAPIMethod ¶
func (*FireFlyClient) QueryContractMethod ¶
func (client *FireFlyClient) QueryContractMethod(t *testing.T, req *core.ContractCallRequest) (interface{}, error)
func (*FireFlyClient) RegisterSelfNode ¶
func (client *FireFlyClient) RegisterSelfNode(t *testing.T, confirm bool)
func (*FireFlyClient) RegisterSelfOrg ¶
func (client *FireFlyClient) RegisterSelfOrg(t *testing.T, confirm bool)
func (*FireFlyClient) RequestReply ¶
func (client *FireFlyClient) RequestReply(t *testing.T, data *core.DataRefOrValue, orgNames []string, tag string, txType core.TransactionType, startTime time.Time) *core.MessageInOut
func (*FireFlyClient) TokenApproval ¶
func (client *FireFlyClient) TokenApproval(t *testing.T, approval *core.TokenApprovalInput, confirm bool) *core.TokenApproval
func (*FireFlyClient) TransferTokens ¶
func (client *FireFlyClient) TransferTokens(t *testing.T, transfer *core.TokenTransferInput, confirm bool) *core.TokenTransfer
Click to show internal directories.
Click to hide internal directories.