messagepickup

package
v0.1.6-0...-5c25bcb Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 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 MockMessagePickupSvc

type MockMessagePickupSvc struct {
	service.DIDComm
	ProtocolName       string
	StatusRequestErr   error
	StatusRequestFunc  func(connectionID string) (*messagepickup.Status, error)
	BatchPickupErr     error
	BatchPickupFunc    func(connectionID string, size int) (int, error)
	HandleInboundFunc  func(msg service.DIDCommMsg, myDID, theirDID string) (string, error)
	HandleOutboundFunc func(_ service.DIDCommMsg, _, _ string) (string, error)
	AddMessageFunc     func(message *model.Envelope, theirDID string) error
	AddMessageErr      error
	AcceptFunc         func(msgType string) bool
	NoopErr            error
	NoopFunc           func(connectionID string) error
}

MockMessagePickupSvc mock messagepickup service.

func (*MockMessagePickupSvc) Accept

func (m *MockMessagePickupSvc) Accept(msgType string) bool

Accept msg checks the msg type.

func (*MockMessagePickupSvc) AddMessage

func (m *MockMessagePickupSvc) AddMessage(message *model.Envelope, theirDID string) error

AddMessage perform AddMessage.

func (*MockMessagePickupSvc) BatchPickup

func (m *MockMessagePickupSvc) BatchPickup(connectionID string, size int) (int, error)

BatchPickup perform BatchPickup.

func (*MockMessagePickupSvc) HandleInbound

func (m *MockMessagePickupSvc) HandleInbound(msg service.DIDCommMsg, myDID, theirDID string) (string, error)

HandleInbound msg.

func (*MockMessagePickupSvc) Name

func (m *MockMessagePickupSvc) Name() string

Name return service name.

func (*MockMessagePickupSvc) Noop

func (m *MockMessagePickupSvc) Noop(connectionID string) error

Noop perform Noop.

func (*MockMessagePickupSvc) StatusRequest

func (m *MockMessagePickupSvc) StatusRequest(connectionID string) (*messagepickup.Status, error)

StatusRequest perform StatusRequest.

Jump to

Keyboard shortcuts

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