pb

package
v0.0.0-...-b73353b Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2018 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterNotificatorServer

func RegisterNotificatorServer(s *grpc.Server, srv NotificatorServer)

Types

type NotificatorClient

type NotificatorClient interface {
	SendEmail(ctx context.Context, in *SendEmailRequest, opts ...grpc.CallOption) (*SendEmailReply, error)
}

NotificatorClient is the client API for Notificator service.

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

func NewNotificatorClient

func NewNotificatorClient(cc *grpc.ClientConn) NotificatorClient

type NotificatorServer

type NotificatorServer interface {
	SendEmail(context.Context, *SendEmailRequest) (*SendEmailReply, error)
}

NotificatorServer is the server API for Notificator service.

type SendEmailReply

type SendEmailReply struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendEmailReply) Descriptor

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

func (*SendEmailReply) GetId

func (m *SendEmailReply) GetId() string

func (*SendEmailReply) ProtoMessage

func (*SendEmailReply) ProtoMessage()

func (*SendEmailReply) Reset

func (m *SendEmailReply) Reset()

func (*SendEmailReply) String

func (m *SendEmailReply) String() string

func (*SendEmailReply) XXX_DiscardUnknown

func (m *SendEmailReply) XXX_DiscardUnknown()

func (*SendEmailReply) XXX_Marshal

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

func (*SendEmailReply) XXX_Merge

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

func (*SendEmailReply) XXX_Size

func (m *SendEmailReply) XXX_Size() int

func (*SendEmailReply) XXX_Unmarshal

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

type SendEmailRequest

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

func (*SendEmailRequest) Descriptor

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

func (*SendEmailRequest) GetContent

func (m *SendEmailRequest) GetContent() string

func (*SendEmailRequest) GetEmail

func (m *SendEmailRequest) GetEmail() string

func (*SendEmailRequest) ProtoMessage

func (*SendEmailRequest) ProtoMessage()

func (*SendEmailRequest) Reset

func (m *SendEmailRequest) Reset()

func (*SendEmailRequest) String

func (m *SendEmailRequest) String() string

func (*SendEmailRequest) XXX_DiscardUnknown

func (m *SendEmailRequest) XXX_DiscardUnknown()

func (*SendEmailRequest) XXX_Marshal

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

func (*SendEmailRequest) XXX_Merge

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

func (*SendEmailRequest) XXX_Size

func (m *SendEmailRequest) XXX_Size() int

func (*SendEmailRequest) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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