Documentation ¶
Index ¶
- Variables
- func NewClientEndpoints() []*api.Endpoint
- func RegisterClientHandler(s server.Server, hdlr ClientHandler, opts ...server.HandlerOption) error
- func RegisterClientServer(s *grpc.Server, srv ClientServer)
- type ClientClient
- type ClientHandler
- type ClientServer
- type ClientService
- type Client_StreamClient
- type Client_StreamServer
- type Client_StreamService
- type Client_StreamStream
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetBody() []byte
- func (x *Message) GetContentType() string
- func (x *Message) GetTopic() string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetBody() []byte
- func (x *Request) GetContentType() string
- func (x *Request) GetEndpoint() string
- func (x *Request) GetService() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
- type UnimplementedClientServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_client_client_proto protoreflect.FileDescriptor
Functions ¶
func NewClientEndpoints ¶
func RegisterClientHandler ¶
func RegisterClientHandler(s server.Server, hdlr ClientHandler, opts ...server.HandlerOption) error
func RegisterClientServer ¶
func RegisterClientServer(s *grpc.Server, srv ClientServer)
Types ¶
type ClientClient ¶
type ClientClient interface { // Call allows a single request to be made Call(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) // Stream is a bidirectional stream Stream(ctx context.Context, opts ...grpc.CallOption) (Client_StreamClient, error) // Publish publishes a message and returns an empty Message Publish(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error) }
ClientClient is the client API for Client service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClientClient ¶
func NewClientClient(cc grpc.ClientConnInterface) ClientClient
type ClientHandler ¶
type ClientHandler interface { // Call allows a single request to be made Call(context.Context, *Request, *Response) error // Stream is a bidirectional stream Stream(context.Context, Client_StreamStream) error // Publish publishes a message and returns an empty Message Publish(context.Context, *Message, *Message) error }
type ClientServer ¶
type ClientServer interface { // Call allows a single request to be made Call(context.Context, *Request) (*Response, error) // Stream is a bidirectional stream Stream(Client_StreamServer) error // Publish publishes a message and returns an empty Message Publish(context.Context, *Message) (*Message, error) }
ClientServer is the server API for Client service.
type ClientService ¶
type ClientService interface { // Call allows a single request to be made Call(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) // Stream is a bidirectional stream Stream(ctx context.Context, opts ...client.CallOption) (Client_StreamService, error) // Publish publishes a message and returns an empty Message Publish(ctx context.Context, in *Message, opts ...client.CallOption) (*Message, error) }
func NewClientService ¶
func NewClientService(name string, c client.Client) ClientService
type Client_StreamClient ¶
type Client_StreamServer ¶
type Client_StreamService ¶
type Client_StreamStream ¶
type Message ¶
type Message struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` Body []byte `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetContentType ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"` ContentType string `protobuf:"bytes,3,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetContentType ¶
func (*Request) GetEndpoint ¶
func (*Request) GetService ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Body []byte `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // 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 UnimplementedClientServer ¶
type UnimplementedClientServer struct { }
UnimplementedClientServer can be embedded to have forward compatible implementations.
func (*UnimplementedClientServer) Stream ¶
func (*UnimplementedClientServer) Stream(Client_StreamServer) error
Click to show internal directories.
Click to hide internal directories.