Documentation
¶
Index ¶
- type MockRouteSvc
- func (m *MockRouteSvc) Accept(msgType string) bool
- func (m *MockRouteSvc) AddKey(recKey string) error
- func (m *MockRouteSvc) Config() (*route.Config, error)
- func (m *MockRouteSvc) HandleInbound(msg service.DIDCommMsg, myDID, theirDID string) (string, error)
- func (m *MockRouteSvc) HandleOutbound(msg service.DIDCommMsg, myDID, theirDID string) error
- func (m *MockRouteSvc) Name() string
- func (m *MockRouteSvc) Register(connectionID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRouteSvc ¶
type MockRouteSvc struct {
ProtocolName string
HandleFunc func(service.DIDCommMsg) (string, error)
HandleOutboundFunc func(msg service.DIDCommMsg, myDID, theirDID string) error
AcceptFunc func(string) bool
RegisterFunc func(connectionID string) error
RouterEndpoint string
RoutingKeys []string
ConfigErr error
AddKeyErr error
}
MockRouteSvc mock route service
func (*MockRouteSvc) Accept ¶
func (m *MockRouteSvc) Accept(msgType string) bool
Accept msg checks the msg type
func (*MockRouteSvc) AddKey ¶
func (m *MockRouteSvc) AddKey(recKey string) error
AddKey adds agents recKey to the router
func (*MockRouteSvc) Config ¶
func (m *MockRouteSvc) Config() (*route.Config, error)
Config gives back the router configuration
func (*MockRouteSvc) HandleInbound ¶
func (m *MockRouteSvc) HandleInbound(msg service.DIDCommMsg, myDID, theirDID string) (string, error)
HandleInbound msg
func (*MockRouteSvc) HandleOutbound ¶
func (m *MockRouteSvc) HandleOutbound(msg service.DIDCommMsg, myDID, theirDID string) error
HandleOutbound msg
func (*MockRouteSvc) Register ¶
func (m *MockRouteSvc) Register(connectionID string) error
Register registers agent with the router.
Click to show internal directories.
Click to hide internal directories.