Documentation ¶
Index ¶
- Variables
- func CheckAttached(t *testing.T, expected map[string]int) bool
- func MockNodeService(node peer.Node, ctx context.Context) substrate.Service
- func RefreshTestVariables()
- type NodeService
- func (s *NodeService) Close() error
- func (s *NodeService) Context() context.Context
- func (s *NodeService) Counter() substrate.CounterService
- func (s *NodeService) Dev() bool
- func (s *NodeService) Http() http.Service
- func (s *NodeService) Node() peer.Node
- func (s *NodeService) Orbitals() []vm.Plugin
- func (s *NodeService) SmartOps() substrate.SmartOpsService
- func (s *NodeService) Tns() tns.Client
- func (s *NodeService) Verbose() bool
- func (s *NodeService) Vm() vm.Service
- type ResponseObject
- type TestClient
- func (c *TestClient) Database() tns.StructureIface[*structureSpec.Database]
- func (c *TestClient) Domain() tns.StructureIface[*structureSpec.Domain]
- func (tc *TestClient) Fetch(path tns.Path) (tns.Object, error)
- func (c *TestClient) Function() tns.StructureIface[*structureSpec.Function]
- func (c *TestClient) Library() tns.StructureIface[*structureSpec.Library]
- func (c *TestClient) Messaging() tns.StructureIface[*structureSpec.Messaging]
- func (c *TestClient) Service() tns.StructureIface[*structureSpec.Service]
- func (tc *TestClient) Simple() tns.SimpleIface
- func (c *TestClient) SmartOp() tns.StructureIface[*structureSpec.SmartOp]
- func (c *TestClient) Storage() tns.StructureIface[*structureSpec.Storage]
- func (c *TestClient) Website() tns.StructureIface[*structureSpec.Website]
- type TestSdk
- func (ts *TestSdk) AttachEvent(*event.Event)
- func (ts *TestSdk) CreateHttpEvent(w http.ResponseWriter, r *http.Request) *event.Event
- func (ts *TestSdk) CreateP2PEvent(cmd *command.Command, response response.Response) *event.Event
- func (ts *TestSdk) CreatePubsubEvent(msg *pubsub.Message) *event.Event
- type TestSmartOps
- type TestVm
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AttachedTestFunctions = make(map[string]int) CalledTestFunctionsPubsub = make([]*pubsub.Message, 0) CalledTestFunctionsP2P = make([]command.Body, 0) CalledTestFunctionsHttp = make([]httpEvent, 0) )
Functions ¶
func RefreshTestVariables ¶
func RefreshTestVariables()
Types ¶
type NodeService ¶
type NodeService struct {
// contains filtered or unexported fields
}
func (*NodeService) Close ¶
func (s *NodeService) Close() error
func (*NodeService) Context ¶
func (s *NodeService) Context() context.Context
func (*NodeService) Counter ¶
func (s *NodeService) Counter() substrate.CounterService
func (*NodeService) Dev ¶
func (s *NodeService) Dev() bool
func (*NodeService) Http ¶
func (s *NodeService) Http() http.Service
func (*NodeService) Node ¶
func (s *NodeService) Node() peer.Node
func (*NodeService) Orbitals ¶
func (s *NodeService) Orbitals() []vm.Plugin
func (*NodeService) SmartOps ¶
func (s *NodeService) SmartOps() substrate.SmartOpsService
func (*NodeService) Tns ¶
func (s *NodeService) Tns() tns.Client
func (*NodeService) Verbose ¶
func (s *NodeService) Verbose() bool
func (*NodeService) Vm ¶
func (s *NodeService) Vm() vm.Service
type ResponseObject ¶
func (ResponseObject) Bind ¶
func (f ResponseObject) Bind(binder interface{}) error
func (ResponseObject) Current ¶
func (f ResponseObject) Current(branches []string) ([]tns.Path, error)
func (ResponseObject) Interface ¶
func (r ResponseObject) Interface() interface{}
func (ResponseObject) Path ¶
func (f ResponseObject) Path() tns.Path
type TestClient ¶
func (*TestClient) Database ¶
func (c *TestClient) Database() tns.StructureIface[*structureSpec.Database]
func (*TestClient) Domain ¶
func (c *TestClient) Domain() tns.StructureIface[*structureSpec.Domain]
func (*TestClient) Function ¶
func (c *TestClient) Function() tns.StructureIface[*structureSpec.Function]
func (*TestClient) Library ¶
func (c *TestClient) Library() tns.StructureIface[*structureSpec.Library]
func (*TestClient) Messaging ¶
func (c *TestClient) Messaging() tns.StructureIface[*structureSpec.Messaging]
func (*TestClient) Service ¶
func (c *TestClient) Service() tns.StructureIface[*structureSpec.Service]
func (*TestClient) Simple ¶
func (tc *TestClient) Simple() tns.SimpleIface
func (*TestClient) SmartOp ¶
func (c *TestClient) SmartOp() tns.StructureIface[*structureSpec.SmartOp]
func (*TestClient) Storage ¶
func (c *TestClient) Storage() tns.StructureIface[*structureSpec.Storage]
func (*TestClient) Website ¶
func (c *TestClient) Website() tns.StructureIface[*structureSpec.Website]
type TestSdk ¶
type TestSdk struct { }
func (*TestSdk) AttachEvent ¶
func (*TestSdk) CreateHttpEvent ¶
func (*TestSdk) CreateP2PEvent ¶
type TestSmartOps ¶
func (*TestSmartOps) Run ¶
func (ts *TestSmartOps) Run(caller smartops.EventCaller, smartOpIds []string) (uint32, error)
Click to show internal directories.
Click to hide internal directories.