service

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIME = "MIME-version: 1.0;\nContent-Type: text/html; charset=\"UTF-8\";\n\n"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewDB

func NewDB(config types.ConfYaml) *DB

New func implements the storage interface

func (*DB) Fetch

func (d *DB) Fetch(key string) types.FileData

func (*DB) FetchByCid

func (d *DB) FetchByCid(key string) types.FileMetadata

func (*DB) FetchKeys

func (d *DB) FetchKeys() types.ListKeys

func (*DB) Store

func (d *DB) Store(key string, fileMetaData types.FileMetadata)

type Estuary

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

func New

func New(config types.ConfYaml) *Estuary

New func implements the storage interface

func (*Estuary) DownloadContent

func (e *Estuary) DownloadContent(filePath string, cid string, baseUrl string) error

func (*Estuary) FetchAllContents

func (e *Estuary) FetchAllContents() types.Contents

func (*Estuary) FetchContentByCid

func (e *Estuary) FetchContentByCid(cid string) types.ByCID

func (*Estuary) UploadContent

func (e *Estuary) UploadContent(filePath string) (types.UploadResponse, error)

type Request

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

func NewRequest

func NewRequest(to []string, subject string, config types.ConfYaml) *Request

func (*Request) BuildMail

func (r *Request) BuildMail(cid string, dekType string, timestamp int64) []byte

func (*Request) Send

func (r *Request) Send(cid string, dekType string, timestamp int64, emailType string) bool

Jump to

Keyboard shortcuts

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