Documentation
¶
Index ¶
- type MockIssueCredentialSvc
- func (m *MockIssueCredentialSvc) Accept(msgType string) bool
- func (m *MockIssueCredentialSvc) ActionContinue(piID string, opt ...issuecredential.Opt) error
- func (m *MockIssueCredentialSvc) ActionStop(piID string, err error, opt ...issuecredential.Opt) error
- func (m *MockIssueCredentialSvc) Actions() ([]issuecredential.Action, error)
- func (m *MockIssueCredentialSvc) HandleInbound(msg service.DIDCommMsg, ctx service.DIDCommContext) (string, error)
- func (m *MockIssueCredentialSvc) HandleOutbound(msg service.DIDCommMsg, myDID, theirDID string) (string, error)
- func (m *MockIssueCredentialSvc) Initialize(interface{}) error
- func (m *MockIssueCredentialSvc) Name() string
- func (m *MockIssueCredentialSvc) RegisterActionEvent(ch chan<- service.DIDCommAction) error
- func (m *MockIssueCredentialSvc) RegisterMsgEvent(ch chan<- service.StateMsg) error
- func (m *MockIssueCredentialSvc) UnregisterActionEvent(ch chan<- service.DIDCommAction) error
- func (m *MockIssueCredentialSvc) UnregisterMsgEvent(ch chan<- service.StateMsg) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIssueCredentialSvc ¶
type MockIssueCredentialSvc 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() ([]issuecredential.Action, error) ActionContinueFunc func(string, ...issuecredential.Opt) error RegisterMsgEventHandle func(chan<- service.StateMsg) error RegisterMsgEventErr error UnregisterMsgEventHandle func(chan<- service.StateMsg) error UnregisterMsgEventErr error RegisterActionEventHandle func(ch chan<- service.DIDCommAction) error RegisterActionEventHandleErr error UnregisterActionEventHandle func(ch chan<- service.DIDCommAction) error UnregisterActionEventHandleErr error }
MockIssueCredentialSvc mock issue credential service.
func (*MockIssueCredentialSvc) Accept ¶
func (m *MockIssueCredentialSvc) Accept(msgType string) bool
Accept msg checks the msg type.
func (*MockIssueCredentialSvc) ActionContinue ¶
func (m *MockIssueCredentialSvc) ActionContinue(piID string, opt ...issuecredential.Opt) error
ActionContinue mock implementation of issue credential service action continue interface.
func (*MockIssueCredentialSvc) ActionStop ¶
func (m *MockIssueCredentialSvc) ActionStop(piID string, err error, opt ...issuecredential.Opt) error
ActionStop mock implementation of issue credential service action stop interface.
func (*MockIssueCredentialSvc) Actions ¶
func (m *MockIssueCredentialSvc) Actions() ([]issuecredential.Action, error)
Actions mock implementation of issue credential service actions interface.
func (*MockIssueCredentialSvc) HandleInbound ¶
func (m *MockIssueCredentialSvc) HandleInbound(msg service.DIDCommMsg, ctx service.DIDCommContext) (string, error)
HandleInbound msg.
func (*MockIssueCredentialSvc) HandleOutbound ¶
func (m *MockIssueCredentialSvc) HandleOutbound(msg service.DIDCommMsg, myDID, theirDID string) (string, error)
HandleOutbound msg.
func (*MockIssueCredentialSvc) Initialize ¶
func (m *MockIssueCredentialSvc) Initialize(interface{}) error
Initialize service.
func (*MockIssueCredentialSvc) Name ¶
func (m *MockIssueCredentialSvc) Name() string
Name return service name.
func (*MockIssueCredentialSvc) RegisterActionEvent ¶
func (m *MockIssueCredentialSvc) RegisterActionEvent(ch chan<- service.DIDCommAction) error
RegisterActionEvent mock implementation of issue credential service RegisterActionEvent.
func (*MockIssueCredentialSvc) RegisterMsgEvent ¶
func (m *MockIssueCredentialSvc) RegisterMsgEvent(ch chan<- service.StateMsg) error
RegisterMsgEvent register message event.
func (*MockIssueCredentialSvc) UnregisterActionEvent ¶
func (m *MockIssueCredentialSvc) UnregisterActionEvent(ch chan<- service.DIDCommAction) error
UnregisterActionEvent mock implementation of issue credential service UnregisterActionEvent.
func (*MockIssueCredentialSvc) UnregisterMsgEvent ¶
func (m *MockIssueCredentialSvc) UnregisterMsgEvent(ch chan<- service.StateMsg) error
UnregisterMsgEvent unregister message event.