Documentation ¶
Index ¶
- type MockPresentProofSvc
- func (m *MockPresentProofSvc) Accept(msgType string) bool
- func (m *MockPresentProofSvc) ActionContinue(piID string, opt ...presentproof.Opt) error
- func (m *MockPresentProofSvc) ActionStop(piID string, err error, opt ...presentproof.Opt) error
- func (m *MockPresentProofSvc) Actions() ([]presentproof.Action, error)
- func (m *MockPresentProofSvc) HandleInbound(msg service.DIDCommMsg, ctx service.DIDCommContext) (string, error)
- func (m *MockPresentProofSvc) HandleOutbound(msg service.DIDCommMsg, myDID, theirDID string) (string, error)
- func (m *MockPresentProofSvc) Initialize(interface{}) error
- func (m *MockPresentProofSvc) Name() string
- func (m *MockPresentProofSvc) RegisterMsgEvent(ch chan<- service.StateMsg) error
- func (m *MockPresentProofSvc) UnregisterMsgEvent(ch chan<- service.StateMsg) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPresentProofSvc ¶
type MockPresentProofSvc struct { service.Action service.Message ProtocolName string HandleFunc func(service.DIDCommMsg) (string, error) HandleOutboundFunc func(msg service.DIDCommMsg, myDID, theirDID string) (string, error) AcceptFunc func(string) bool ActionsFunc func() ([]presentproof.Action, error) ActionContinueFunc func(string, ...presentproof.Opt) error RegisterMsgEventHandle func(chan<- service.StateMsg) error RegisterMsgEventErr error UnregisterMsgEventHandle func(chan<- service.StateMsg) error UnregisterMsgEventErr error }
MockPresentProofSvc mock present proof service.
func (*MockPresentProofSvc) Accept ¶
func (m *MockPresentProofSvc) Accept(msgType string) bool
Accept msg checks the msg type.
func (*MockPresentProofSvc) ActionContinue ¶
func (m *MockPresentProofSvc) ActionContinue(piID string, opt ...presentproof.Opt) error
ActionContinue mock implementation of present proof service action continue interface.
func (*MockPresentProofSvc) ActionStop ¶
func (m *MockPresentProofSvc) ActionStop(piID string, err error, opt ...presentproof.Opt) error
ActionStop mock implementation of present proof service action stop interface.
func (*MockPresentProofSvc) Actions ¶
func (m *MockPresentProofSvc) Actions() ([]presentproof.Action, error)
Actions mock implementation of present proof service actions interface.
func (*MockPresentProofSvc) HandleInbound ¶
func (m *MockPresentProofSvc) HandleInbound(msg service.DIDCommMsg, ctx service.DIDCommContext) (string, error)
HandleInbound msg.
func (*MockPresentProofSvc) HandleOutbound ¶
func (m *MockPresentProofSvc) HandleOutbound(msg service.DIDCommMsg, myDID, theirDID string) (string, error)
HandleOutbound msg.
func (*MockPresentProofSvc) Initialize ¶
func (m *MockPresentProofSvc) Initialize(interface{}) error
Initialize service.
func (*MockPresentProofSvc) Name ¶
func (m *MockPresentProofSvc) Name() string
Name return service name.
func (*MockPresentProofSvc) RegisterMsgEvent ¶
func (m *MockPresentProofSvc) RegisterMsgEvent(ch chan<- service.StateMsg) error
RegisterMsgEvent register message event.
func (*MockPresentProofSvc) UnregisterMsgEvent ¶
func (m *MockPresentProofSvc) UnregisterMsgEvent(ch chan<- service.StateMsg) error
UnregisterMsgEvent unregister message event.
Click to show internal directories.
Click to hide internal directories.