sv_sendas

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 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 SendAs

type SendAs interface {
	List() (sa []*mo_sendas.SendAs, err error)
	Add(sendAsEmail string, opts ...SendAsOpt) (sa *mo_sendas.SendAs, err error)
	Verify(sendAsEmail string) (err error)
	Remove(sendAsEmail string) (err error)
}

func New

func New(ctx goog_context.Context, userId string) SendAs

type SendAsOpt

type SendAsOpt func(o SendAsOpts) SendAsOpts

func DisplayName

func DisplayName(displayName string) SendAsOpt

func ReplyTo

func ReplyTo(replyTo string) SendAsOpt

type SendAsOpts

type SendAsOpts struct {
	SendAsEmail    string `json:"sendAsEmail"`
	DisplayName    string `json:"displayName,omitempty"`
	ReplyToAddress string `json:"replyToAddress,omitempty"`
	Signature      string `json:"signature,omitempty"`
}

func (SendAsOpts) Apply

func (z SendAsOpts) Apply(opts []SendAsOpt) SendAsOpts

Jump to

Keyboard shortcuts

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