mail

package
v0.0.0-...-37bf6de Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2016 License: MIT Imports: 6 Imported by: 4

Documentation

Overview

Package mail is a generated protocol buffer package.

It is generated from these files:

proto/mail/mail.proto

It has these top-level messages:

Message
Recipient
SendTemplateRequest
SendTemplateResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMailingHandler

func RegisterMailingHandler(s server.Server, hdlr MailingHandler, opts ...server.HandlerOption)

Types

type Mailing

type Mailing struct {
	MailingHandler
}

func (*Mailing) SendTemplate

func (h *Mailing) SendTemplate(ctx context.Context, in *SendTemplateRequest, out *SendTemplateResponse) error

type MailingClient

type MailingClient interface {
	SendTemplate(ctx context.Context, in *SendTemplateRequest, opts ...client.CallOption) (*SendTemplateResponse, error)
}

func NewMailingClient

func NewMailingClient(serviceName string, c client.Client) MailingClient

type MailingHandler

type MailingHandler interface {
	SendTemplate(context.Context, *SendTemplateRequest, *SendTemplateResponse) error
}

type Message

type Message struct {
	From     string `protobuf:"bytes,1,opt,name=from" json:"from,omitempty"`
	FromName string `protobuf:"bytes,2,opt,name=fromName" json:"fromName,omitempty"`
	To       string `protobuf:"bytes,3,opt,name=to" json:"to,omitempty"`
	ToName   string `protobuf:"bytes,4,opt,name=toName" json:"toName,omitempty"`
}

func (*Message) Descriptor

func (*Message) Descriptor() ([]byte, []int)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

type Recipient

type Recipient struct {
	Name  string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Email string `protobuf:"bytes,2,opt,name=email" json:"email,omitempty"`
}

func (*Recipient) Descriptor

func (*Recipient) Descriptor() ([]byte, []int)

func (*Recipient) ProtoMessage

func (*Recipient) ProtoMessage()

func (*Recipient) Reset

func (m *Recipient) Reset()

func (*Recipient) String

func (m *Recipient) String() string

type SendTemplateRequest

type SendTemplateRequest struct {
	Message   *Message          `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
	Template  string            `protobuf:"bytes,2,opt,name=template" json:"template,omitempty"`
	Variables map[string]string `` /* 138-byte string literal not displayed */
}

func (*SendTemplateRequest) Descriptor

func (*SendTemplateRequest) Descriptor() ([]byte, []int)

func (*SendTemplateRequest) GetMessage

func (m *SendTemplateRequest) GetMessage() *Message

func (*SendTemplateRequest) GetVariables

func (m *SendTemplateRequest) GetVariables() map[string]string

func (*SendTemplateRequest) ProtoMessage

func (*SendTemplateRequest) ProtoMessage()

func (*SendTemplateRequest) Reset

func (m *SendTemplateRequest) Reset()

func (*SendTemplateRequest) String

func (m *SendTemplateRequest) String() string

type SendTemplateResponse

type SendTemplateResponse struct {
	MessageID string `protobuf:"bytes,1,opt,name=messageID" json:"messageID,omitempty"`
}

func (*SendTemplateResponse) Descriptor

func (*SendTemplateResponse) Descriptor() ([]byte, []int)

func (*SendTemplateResponse) ProtoMessage

func (*SendTemplateResponse) ProtoMessage()

func (*SendTemplateResponse) Reset

func (m *SendTemplateResponse) Reset()

func (*SendTemplateResponse) String

func (m *SendTemplateResponse) String() string

Jump to

Keyboard shortcuts

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