services

package
v0.0.0-...-b2ec008 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id    string
	Email string
	Token string
}

type GWService

type GWService struct{}

func (GWService) CloseAccount

func (s GWService) CloseAccount(account Account) error

func (GWService) GenerateAccount

func (s GWService) GenerateAccount() (Account, error)

func (GWService) RetrieveMessages

func (s GWService) RetrieveMessages(account Account) ([]Message, error)

type Message

type Message struct {
	Id      string
	From    string
	To      string
	Subject string
	Intro   string
	Html    string
	Text    string
}

type Service

type Service interface {
	GenerateAccount() (Account, error)
	CloseAccount(account Account) error
	RetrieveMessages(account Account) ([]Message, error)
}

Jump to

Keyboard shortcuts

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