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, _ service.DIDCommContext) (string, error)
- func (m *MockIssueCredentialSvc) HandleOutbound(msg service.DIDCommMsg, myDID, theirDID string) (string, 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 {
ProtocolName string
HandleFunc func(service.DIDCommMsg) (string, error)
HandleOutboundFunc func(msg service.DIDCommMsg, myDID, theirDID string) (string, error)
AcceptFunc func(string) bool
RegisterActionEventErr 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 continues action.
func (*MockIssueCredentialSvc) ActionStop ¶
func (m *MockIssueCredentialSvc) ActionStop(piID string, err error, opt ...issuecredential.Opt) error
ActionStop stops action.
func (*MockIssueCredentialSvc) Actions ¶
func (m *MockIssueCredentialSvc) Actions() ([]issuecredential.Action, error)
Actions returns actions.
func (*MockIssueCredentialSvc) HandleInbound ¶
func (m *MockIssueCredentialSvc) HandleInbound(msg service.DIDCommMsg, _ 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) Name ¶
func (m *MockIssueCredentialSvc) Name() string
Name return service name.
func (*MockIssueCredentialSvc) RegisterActionEvent ¶
func (m *MockIssueCredentialSvc) RegisterActionEvent(ch chan<- service.DIDCommAction) error
RegisterActionEvent register action event.
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 unregister action event.
func (*MockIssueCredentialSvc) UnregisterMsgEvent ¶
func (m *MockIssueCredentialSvc) UnregisterMsgEvent(ch chan<- service.StateMsg) error
UnregisterMsgEvent unregister message event.
Click to show internal directories.
Click to hide internal directories.