mediator

package
v0.0.0-...-64dd8ac Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RESTSteps

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

RESTSteps is steps for route using REST APIs.

func NewRouteRESTSteps

func NewRouteRESTSteps() *RESTSteps

NewRouteRESTSteps return steps for route using REST APIs.

func (*RESTSteps) RegisterRoute

func (d *RESTSteps) RegisterRoute(agentID, varNames string) error

RegisterRoute registers the router for the agent.

func (*RESTSteps) RegisterSteps

func (d *RESTSteps) RegisterSteps(s *godog.Suite)

RegisterSteps registers router steps.

func (*RESTSteps) SetContext

func (d *RESTSteps) SetContext(ctx *context.BDDContext)

SetContext is called before every scenario is run with a fresh new context.

func (*RESTSteps) UnregisterRoute

func (d *RESTSteps) UnregisterRoute(agentID, varNames string) error

UnregisterRoute unregisters the router.

func (*RESTSteps) VerifyConnections

func (d *RESTSteps) VerifyConnections(agentID, varNames string) error

VerifyConnections verifies the router connections id has been set to the provided connections id.

type SDKSteps

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

SDKSteps is steps for route using client SDK.

func NewRouteSDKSteps

func NewRouteSDKSteps() *SDKSteps

NewRouteSDKSteps return steps for router using client SDK.

func (*SDKSteps) ApproveRequest

func (d *SDKSteps) ApproveRequest(agentID string, args interface{})

ApproveRequest approves a routing protocol request with the given args.

func (*SDKSteps) CreateRouteClient

func (d *SDKSteps) CreateRouteClient(agentID string) error

CreateRouteClient creates route client.

func (*SDKSteps) GetEventReceived

func (d *SDKSteps) GetEventReceived(msgID string, timeout time.Duration) (*service.DIDCommAction, error)

GetEventReceived blocks until a routing event for the given message ID is found or until the timeout is reached.

func (*SDKSteps) GetRoutingConfig

func (d *SDKSteps) GetRoutingConfig(agent, connectionID string, timeout time.Duration) (*routesvc.Config, error)

GetRoutingConfig blocks until it fetches the agent's routing configuration or until the timeout is reached.

func (*SDKSteps) RegisterRoute

func (d *SDKSteps) RegisterRoute(agentID, varName, routerID string) error

RegisterRoute registers the router for the agent.

func (*SDKSteps) RegisterSteps

func (d *SDKSteps) RegisterSteps(s *godog.Suite)

RegisterSteps registers router steps.

func (*SDKSteps) SetContext

func (d *SDKSteps) SetContext(ctx *context.BDDContext)

SetContext is called before every scenario is run with a fresh new context.

func (*SDKSteps) VerifyConnection

func (d *SDKSteps) VerifyConnection(agentID, varName string) error

VerifyConnection verifies the router connection id has been set to the provided connection id.

Jump to

Keyboard shortcuts

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