email_srv

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEmailServer

func RegisterEmailServer(s *grpc.Server, srv EmailServer)

Types

type EmailClient

type EmailClient interface {
	SendSimpleEmail(ctx context.Context, in *EmailData, opts ...grpc.CallOption) (*Empty, error)
}

EmailClient is the client API for Email service.

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

func NewEmailClient

func NewEmailClient(cc *grpc.ClientConn) EmailClient

type EmailData

type EmailData struct {
	Email                string   `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Text                 string   `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EmailData) Descriptor

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

func (*EmailData) GetEmail

func (m *EmailData) GetEmail() string

func (*EmailData) GetText

func (m *EmailData) GetText() string

func (*EmailData) ProtoMessage

func (*EmailData) ProtoMessage()

func (*EmailData) Reset

func (m *EmailData) Reset()

func (*EmailData) String

func (m *EmailData) String() string

func (*EmailData) XXX_DiscardUnknown

func (m *EmailData) XXX_DiscardUnknown()

func (*EmailData) XXX_Marshal

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

func (*EmailData) XXX_Merge

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

func (*EmailData) XXX_Size

func (m *EmailData) XXX_Size() int

func (*EmailData) XXX_Unmarshal

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

type EmailServer

type EmailServer interface {
	SendSimpleEmail(context.Context, *EmailData) (*Empty, error)
}

EmailServer is the server API for Email service.

type Empty added in v0.0.15

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor added in v0.0.15

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

func (*Empty) ProtoMessage added in v0.0.15

func (*Empty) ProtoMessage()

func (*Empty) Reset added in v0.0.15

func (m *Empty) Reset()

func (*Empty) String added in v0.0.15

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown added in v0.0.15

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal added in v0.0.15

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

func (*Empty) XXX_Merge added in v0.0.15

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

func (*Empty) XXX_Size added in v0.0.15

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal added in v0.0.15

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

type UnimplementedEmailServer

type UnimplementedEmailServer struct {
}

UnimplementedEmailServer can be embedded to have forward compatible implementations.

func (*UnimplementedEmailServer) SendSimpleEmail

func (*UnimplementedEmailServer) SendSimpleEmail(ctx context.Context, req *EmailData) (*Empty, error)

Jump to

Keyboard shortcuts

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