github.com/hyperledger/aries-framework-go@v0.3.2/pkg/didcomm/protocol/outofband/models.go (about)

     1  /*
     2  Copyright SecureKey Technologies Inc. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package outofband
     8  
     9  import "github.com/hyperledger/aries-framework-go/pkg/didcomm/protocol/decorator"
    10  
    11  // Invitation is this protocol's `invitation` message.
    12  type Invitation struct {
    13  	ID        string                  `json:"@id"`
    14  	Type      string                  `json:"@type"`
    15  	Label     string                  `json:"label,omitempty"`
    16  	Goal      string                  `json:"goal,omitempty"`
    17  	GoalCode  string                  `json:"goal_code,omitempty"`
    18  	Services  []interface{}           `json:"services"` // Services is an array of either DIDs or 'services' block entries
    19  	Accept    []string                `json:"accept,omitempty"`
    20  	Protocols []string                `json:"handshake_protocols,omitempty"`
    21  	Requests  []*decorator.Attachment `json:"request~attach,omitempty"`
    22  }
    23  
    24  // HandshakeReuse is this protocol's 'handshake-reuse' message.
    25  type HandshakeReuse struct {
    26  	ID   string `json:"@id"`
    27  	Type string `json:"@type"`
    28  }
    29  
    30  // HandshakeReuseAccepted is this protocol's 'handshake-reuse-accepted' message.
    31  type HandshakeReuseAccepted struct {
    32  	ID   string `json:"@id"`
    33  	Type string `json:"@type"`
    34  }