generic

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMessageSvc

type MockMessageSvc struct {
	HandleFunc func(*service.DIDCommMsg) (string, error)
	AcceptFunc func(msgType string, purpose []string) bool
	NameVal    string
}

MockMessageSvc is mock generic service.

func NewCustomMockMessageSvc

func NewCustomMockMessageSvc(typeVal, name string) *MockMessageSvc

NewCustomMockMessageSvc returns new custom mock message service.

func (*MockMessageSvc) Accept

func (m *MockMessageSvc) Accept(msgType string, purpose []string) bool

Accept msg checks the msg type.

func (*MockMessageSvc) HandleInbound

func (m *MockMessageSvc) HandleInbound(msg service.DIDCommMsg, ctx service.DIDCommContext) (string, error)

HandleInbound msg.

func (*MockMessageSvc) Initialize

func (m *MockMessageSvc) Initialize(interface{}) error

Initialize service.

func (*MockMessageSvc) Name

func (m *MockMessageSvc) Name() string

Name name of message service.

Jump to

Keyboard shortcuts

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