message

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Msg

type Msg struct {
	DIDCommMsg service.DIDCommMsg
	MyDID      string
	TheirDID   string
}

Msg model.

type MsgService

type MsgService struct {
	// contains filtered or unexported fields
}

MsgService msg service implementation.

func NewMsgSvc

func NewMsgSvc(name, msgType string, msgCh chan Msg) *MsgService

NewMsgSvc new msg service.

func (*MsgService) Accept

func (m *MsgService) Accept(msgType string, _ []string) bool

Accept validates whether the service handles msgType and purpose.

func (*MsgService) HandleInbound

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

HandleInbound handles inbound didcomm msg.

func (*MsgService) Name

func (m *MsgService) Name() string

Name svc name.

Jump to

Keyboard shortcuts

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