Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterNotifierServer ¶
func RegisterNotifierServer(s *grpc.Server, srv NotifierServer)
Types ¶
type NotifierClient ¶
type NotifierClient interface { Listen(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) Notify(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) }
NotifierClient is the client API for Notifier service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNotifierClient ¶
func NewNotifierClient(cc grpc.ClientConnInterface) NotifierClient
type NotifierServer ¶
type NotifierServer interface { Listen(context.Context, *Request) (*Response, error) Notify(context.Context, *Request) (*Response, error) }
NotifierServer is the server API for Notifier service.
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedNotifierServer ¶
type UnimplementedNotifierServer struct { }
UnimplementedNotifierServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.