bridge

package
v0.0.0-...-7dcde51 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatSender

type CatSender struct{}

func NewCatSender

func NewCatSender() *CatSender

func (*CatSender) Send

func (*CatSender) Send(str string) string

type CommonMailman

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

func NewCommonMailman

func NewCommonMailman(sender Sender) *CommonMailman

func (*CommonMailman) SendMail

func (m *CommonMailman) SendMail(mail Mail) string

type DogSender

type DogSender struct{}

func NewDogSender

func NewDogSender() *DogSender

func (*DogSender) Send

func (*DogSender) Send(str string) string

type Mail

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

func NewMail

func NewMail(from, to, content string) *Mail

func (*Mail) Serialize

func (m *Mail) Serialize() string

type Mailman

type Mailman interface {
	SendMail(mail Mail) string
}

type Sender

type Sender interface {
	Send(str string) string
}

type SpecialMailman

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

func NewSpecialMailman

func NewSpecialMailman(sender Sender) *SpecialMailman

func (*SpecialMailman) SendMail

func (m *SpecialMailman) SendMail(mail Mail) string

Jump to

Keyboard shortcuts

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