messageSharingStorageFileCsv

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT-0 Imports: 10 Imported by: 3

README

MailHedgehog storage implementation for shared messaged rows, by storing in csv file.

Stores all shared messages data in csv file.

Usage

storage := messageSharingStorageFileCsv.CreateSharingEmailUsingCSV(&messageSharingStorageFileCsv.StorageConfiguration{Path: '.mh-sharing.csv'})

storage.DeleteExpired()

Development

go mod tidy
go mod verify
go mod vendor
go test --cover

Credits

  • Think Studio

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageSharingStorageFileCsv

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

func CreateSharingEmailUsingCSV

func CreateSharingEmailUsingCSV(config *StorageConfiguration) *MessageSharingStorageFileCsv

func (*MessageSharingStorageFileCsv) Add

func (*MessageSharingStorageFileCsv) DeleteExpired

func (storage *MessageSharingStorageFileCsv) DeleteExpired() (bool, error)

func (*MessageSharingStorageFileCsv) Find

type StorageConfiguration

type StorageConfiguration struct {
	Path string `yaml:"path"`
}

Jump to

Keyboard shortcuts

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