mailer

package
v0.0.0-...-8e8302e Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMailerServiceServer

func RegisterMailerServiceServer(s *grpc.Server, srv MailerServiceServer)

Types

type Error

type Error struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Description          string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Error) Descriptor

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

func (*Error) GetCode

func (m *Error) GetCode() int32

func (*Error) GetDescription

func (m *Error) GetDescription() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) String

func (m *Error) String() string

func (*Error) XXX_DiscardUnknown

func (m *Error) XXX_DiscardUnknown()

func (*Error) XXX_Marshal

func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Error) XXX_Merge

func (m *Error) XXX_Merge(src proto.Message)

func (*Error) XXX_Size

func (m *Error) XXX_Size() int

func (*Error) XXX_Unmarshal

func (m *Error) XXX_Unmarshal(b []byte) error

type MailerServiceClient

type MailerServiceClient interface {
	SendWelcomeMail(ctx context.Context, in *WelcomeMailRequest, opts ...grpc.CallOption) (*Response, error)
}

MailerServiceClient is the client API for MailerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMailerServiceClient

func NewMailerServiceClient(cc *grpc.ClientConn) MailerServiceClient

type MailerServiceServer

type MailerServiceServer interface {
	SendWelcomeMail(context.Context, *WelcomeMailRequest) (*Response, error)
}

MailerServiceServer is the server API for MailerService service.

type Response

type Response struct {
	SendSuccess          bool                 `protobuf:"varint,1,opt,name=sendSuccess,proto3" json:"sendSuccess,omitempty"`
	SentAt               *timestamp.Timestamp `protobuf:"bytes,2,opt,name=sentAt,proto3" json:"sentAt,omitempty"`
	Errors               *Error               `protobuf:"bytes,3,opt,name=errors,proto3" json:"errors,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetErrors

func (m *Response) GetErrors() *Error

func (*Response) GetSendSuccess

func (m *Response) GetSendSuccess() bool

func (*Response) GetSentAt

func (m *Response) GetSentAt() *timestamp.Timestamp

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

func (m *Response) XXX_Unmarshal(b []byte) error

type User

type User struct {
	FirstName            string   `protobuf:"bytes,1,opt,name=firstName,proto3" json:"firstName,omitempty"`
	LastName             string   `protobuf:"bytes,2,opt,name=lastName,proto3" json:"lastName,omitempty"`
	Email                string   `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*User) Descriptor

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

func (*User) GetEmail

func (m *User) GetEmail() string

func (*User) GetFirstName

func (m *User) GetFirstName() string

func (*User) GetLastName

func (m *User) GetLastName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*User) XXX_Merge

func (m *User) XXX_Merge(src proto.Message)

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

func (m *User) XXX_Unmarshal(b []byte) error

type WelcomeMailRequest

type WelcomeMailRequest struct {
	Details              *User    `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"`
	Token                string   `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Priority             int32    `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*WelcomeMailRequest) Descriptor

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

func (*WelcomeMailRequest) GetDetails

func (m *WelcomeMailRequest) GetDetails() *User

func (*WelcomeMailRequest) GetPriority

func (m *WelcomeMailRequest) GetPriority() int32

func (*WelcomeMailRequest) GetToken

func (m *WelcomeMailRequest) GetToken() string

func (*WelcomeMailRequest) ProtoMessage

func (*WelcomeMailRequest) ProtoMessage()

func (*WelcomeMailRequest) Reset

func (m *WelcomeMailRequest) Reset()

func (*WelcomeMailRequest) String

func (m *WelcomeMailRequest) String() string

func (*WelcomeMailRequest) XXX_DiscardUnknown

func (m *WelcomeMailRequest) XXX_DiscardUnknown()

func (*WelcomeMailRequest) XXX_Marshal

func (m *WelcomeMailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WelcomeMailRequest) XXX_Merge

func (m *WelcomeMailRequest) XXX_Merge(src proto.Message)

func (*WelcomeMailRequest) XXX_Size

func (m *WelcomeMailRequest) XXX_Size() int

func (*WelcomeMailRequest) XXX_Unmarshal

func (m *WelcomeMailRequest) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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