github.com/hyperledger/aries-framework-go@v0.3.2/pkg/didcomm/common/service/service.go (about) 1 /* 2 Copyright SecureKey Technologies Inc. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package service 8 9 // InboundHandler is handler for inbound messages. 10 type InboundHandler interface { 11 // HandleInbound handles inbound messages. 12 HandleInbound(msg DIDCommMsg, ctx DIDCommContext) (string, error) 13 } 14 15 // OutboundHandler is handler for outbound messages. 16 type OutboundHandler interface { 17 // HandleOutbound handles outbound messages. 18 HandleOutbound(msg DIDCommMsg, myDID, theirDID string) (string, error) 19 } 20 21 // Handler provides protocol service handle api. 22 type Handler interface { 23 InboundHandler 24 OutboundHandler 25 } 26 27 // DIDComm defines service APIs. 28 type DIDComm interface { 29 // service handler 30 Handler 31 // event service 32 Event 33 }