Documentation
¶
Index ¶
- type Converter
- func (c *Converter) Convert(reader io.Reader) (*pb.Email, error)
- func (c *Converter) GetEmail(hash string) (*pb.Email, error)
- func (c *Converter) GetEmailChunked(hash string) (*pb.Email, error)
- func (c *Converter) PutEmail(email *pb.Email) (string, error)
- func (c *Converter) PutEmailChunked(email *pb.Email) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
Converter takes eml files and converting them to an ipfs friendly version
func NewConverter ¶
NewConverter instantiates our new converter
func (*Converter) GetEmail ¶
GetEmail is a helper function to retrieve an email object from ipfs, and return its protocol buffer type
func (*Converter) GetEmailChunked ¶
GetEmailChunked is used to return an email from its chunked storage format