emails

package
v0.0.0-...-fb1a1ec Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_emails_proto protoreflect.FileDescriptor

Functions

func NewEmailsEndpoints

func NewEmailsEndpoints() []*api.Endpoint

func RegisterEmailsHandler

func RegisterEmailsHandler(s server.Server, hdlr EmailsHandler, opts ...server.HandlerOption) error

Types

type EmailsHandler

type EmailsHandler interface {
	Send(context.Context, *SendRequest, *SendResponse) error
}

type EmailsService

type EmailsService interface {
	Send(ctx context.Context, in *SendRequest, opts ...client.CallOption) (*SendResponse, error)
}

func NewEmailsService

func NewEmailsService(name string, c client.Client) EmailsService

type SendRequest

type SendRequest struct {
	From         string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To           string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	TemplateId   string `protobuf:"bytes,3,opt,name=template_id,json=templateId,proto3" json:"template_id,omitempty"`
	TemplateData []byte `protobuf:"bytes,4,opt,name=template_data,json=templateData,proto3" json:"template_data,omitempty"`
	SendAt       int64  `protobuf:"varint,5,opt,name=send_at,json=sendAt,proto3" json:"send_at,omitempty"`
	// contains filtered or unexported fields
}

func (*SendRequest) Descriptor deprecated

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

Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.

func (*SendRequest) GetFrom

func (x *SendRequest) GetFrom() string

func (*SendRequest) GetSendAt

func (x *SendRequest) GetSendAt() int64

func (*SendRequest) GetTemplateData

func (x *SendRequest) GetTemplateData() []byte

func (*SendRequest) GetTemplateId

func (x *SendRequest) GetTemplateId() string

func (*SendRequest) GetTo

func (x *SendRequest) GetTo() string

func (*SendRequest) ProtoMessage

func (*SendRequest) ProtoMessage()

func (*SendRequest) ProtoReflect

func (x *SendRequest) ProtoReflect() protoreflect.Message

func (*SendRequest) Reset

func (x *SendRequest) Reset()

func (*SendRequest) String

func (x *SendRequest) String() string

type SendResponse

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

func (*SendResponse) Descriptor deprecated

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

Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.

func (*SendResponse) ProtoMessage

func (*SendResponse) ProtoMessage()

func (*SendResponse) ProtoReflect

func (x *SendResponse) ProtoReflect() protoreflect.Message

func (*SendResponse) Reset

func (x *SendResponse) Reset()

func (*SendResponse) String

func (x *SendResponse) String() string

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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