pinata

package
v0.0.78 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sent

type Sent struct {
	// contains filtered or unexported fields
}

Sent handles storing messages in pinata

func NewSent

func NewSent(apiKey, apiSecret string) (*Sent, error)

NewSent creates a new pinata sen store.

func (Sent) Key

func (h Sent) Key(messageID mail.ID, contentsHash, msg []byte) string

Key of resource stored.

func (Sent) PutMessage

func (h Sent) PutMessage(messageID mail.ID, contentsHash, msg []byte, headers map[string]string) (address, resource string, msgLocInd uint64, err error)

PutMessage stores the message in pinata.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL