Documentation ¶
Overview ¶
Package mail implements parsing of mail messages for mailchain.
Index ¶
- type Address
- type Data
- func (*Data) Descriptor() ([]byte, []int)
- func (m *Data) GetEncryptedLocation() []byte
- func (m *Data) GetHash() []byte
- func (m *Data) GetVersion() int32
- func (*Data) ProtoMessage()
- func (m *Data) Reset()
- func (m *Data) String() string
- func (m *Data) XXX_DiscardUnknown()
- func (m *Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Data) XXX_Merge(src proto.Message)
- func (m *Data) XXX_Size() int
- func (m *Data) XXX_Unmarshal(b []byte) error
- type Headers
- type ID
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { DisplayName string // Proper name; may be empty. FullAddress string // 0x92d8f10248c6a3953cc3692a894655ad05d61efb@chain.network.mailchain ChainAddress string // 0x92d8f10248c6a3953cc3692a894655ad05d61efb }
Address represents a single mail address. An address such as "Charlotte <0x92d8f10248c6a3953cc3692a894655ad05d61efb@ropsten.ethereum.mailchain>" is represented as Address{Name: "Charlotte", Address: "0x92d8f10248c6a3953cc3692a894655ad05d61efb@ropsten.ethereum.mailchain"}.
func ParseAddress ¶
ParseAddress parses a single RFC 5322 address, e.g. "Charlotte <0x92d8f10248c6a3953cc3692a894655ad05d61efb@ropsten.ethereum.mailchain>" then apply it to the chain address.
type Data ¶
type Data struct { Version int32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` EncryptedLocation []byte `protobuf:"bytes,2,opt,name=encryptedLocation,proto3" json:"encryptedLocation,omitempty"` Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Data) Descriptor ¶
func (*Data) GetEncryptedLocation ¶
func (*Data) GetVersion ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) XXX_DiscardUnknown ¶
func (m *Data) XXX_DiscardUnknown()
func (*Data) XXX_Unmarshal ¶
type ID ¶
type ID multihash.Multihash
ID create the mail message ID header
func FromHexString ¶
FromHexString create ID from multihash hex string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.