generic

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 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, myDID, theirDID string) (string, error)

HandleInbound msg

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