github.com/hyperledger/aries-framework-go@v0.3.2/pkg/didcomm/messaging/service/basic/models.go (about)

     1  /*
     2   *
     3   * Copyright SecureKey Technologies Inc. All Rights Reserved.
     4   *
     5   * SPDX-License-Identifier: Apache-2.0
     6   * /
     7   *
     8   */
     9  
    10  package basic
    11  
    12  import "time"
    13  
    14  // Message is message model for basic message protocol
    15  // Reference:
    16  //  https://github.com/hyperledger/aries-rfcs/tree/master/features/0095-basic-message#reference
    17  type Message struct {
    18  	ID   string `json:"@id"`
    19  	Type string `json:"@type"`
    20  	I10n struct {
    21  		Locale string `json:"locale"`
    22  	} `json:"~l10n"`
    23  	SentTime time.Time `json:"sent_time"`
    24  	Content  string    `json:"content"`
    25  }