issuecredential

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

Actions returns actions.

func (*MockIssueCredentialSvc) HandleInbound

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.

Jump to

Keyboard shortcuts

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