issuecredential

package
v0.0.0-...-57c6170 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 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 {
	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

Actions mock implementation of issue credential service actions interface.

func (*MockIssueCredentialSvc) HandleInbound

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.

Jump to

Keyboard shortcuts

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