messagepickup

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: 2 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, ctx service.DIDCommContext) (string, error)
	HandleOutboundFunc func(_ service.DIDCommMsg, _, _ string) (string, error)
	AddMessageFunc     func(message []byte, 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 []byte, 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

HandleInbound msg.

func (*MockMessagePickupSvc) Initialize added in v0.1.8

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

Initialize service.

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