Documentation ¶
Index ¶
- Variables
- func NewServerEndpoints() []*api.Endpoint
- func RegisterServerHandler(s server.Server, hdlr ServerHandler, opts ...server.HandlerOption) error
- type HandleRequest
- func (*HandleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HandleRequest) GetEndpoint() string
- func (x *HandleRequest) GetProtocol() string
- func (x *HandleRequest) GetService() string
- func (*HandleRequest) ProtoMessage()
- func (x *HandleRequest) ProtoReflect() protoreflect.Message
- func (x *HandleRequest) Reset()
- func (x *HandleRequest) String() string
- type HandleResponse
- type ServerHandler
- type ServerService
- type SubscribeRequest
- type SubscribeResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var File_server_proto_server_proto protoreflect.FileDescriptor
Functions ¶
func NewServerEndpoints ¶
NewServerEndpoints API Endpoints for Server service
func RegisterServerHandler ¶
func RegisterServerHandler(s server.Server, hdlr ServerHandler, opts ...server.HandlerOption) error
Types ¶
type HandleRequest ¶
type HandleRequest 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"` Protocol string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"` // contains filtered or unexported fields }
func (*HandleRequest) Descriptor
deprecated
func (*HandleRequest) Descriptor() ([]byte, []int)
Deprecated: Use HandleRequest.ProtoReflect.Descriptor instead.
func (*HandleRequest) GetEndpoint ¶
func (x *HandleRequest) GetEndpoint() string
func (*HandleRequest) GetProtocol ¶
func (x *HandleRequest) GetProtocol() string
func (*HandleRequest) GetService ¶
func (x *HandleRequest) GetService() string
func (*HandleRequest) ProtoMessage ¶
func (*HandleRequest) ProtoMessage()
func (*HandleRequest) ProtoReflect ¶ added in v2.9.8
func (x *HandleRequest) ProtoReflect() protoreflect.Message
func (*HandleRequest) Reset ¶
func (x *HandleRequest) Reset()
func (*HandleRequest) String ¶
func (x *HandleRequest) String() string
type HandleResponse ¶
type HandleResponse struct {
// contains filtered or unexported fields
}
func (*HandleResponse) Descriptor
deprecated
func (*HandleResponse) Descriptor() ([]byte, []int)
Deprecated: Use HandleResponse.ProtoReflect.Descriptor instead.
func (*HandleResponse) ProtoMessage ¶
func (*HandleResponse) ProtoMessage()
func (*HandleResponse) ProtoReflect ¶ added in v2.9.8
func (x *HandleResponse) ProtoReflect() protoreflect.Message
func (*HandleResponse) Reset ¶
func (x *HandleResponse) Reset()
func (*HandleResponse) String ¶
func (x *HandleResponse) String() string
type ServerHandler ¶
type ServerHandler interface { Handle(context.Context, *HandleRequest, *HandleResponse) error Subscribe(context.Context, *SubscribeRequest, *SubscribeResponse) error }
ServerHandler is the server API for Server service.
type ServerService ¶
type ServerService interface { Handle(ctx context.Context, in *HandleRequest, opts ...client.CallOption) (*HandleResponse, error) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...client.CallOption) (*SubscribeResponse, error) }
ServerService is the client API for Server service.
func NewServerService ¶
func NewServerService(name string, c client.Client) ServerService
type SubscribeRequest ¶
type SubscribeRequest struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` // contains filtered or unexported fields }
func (*SubscribeRequest) Descriptor
deprecated
func (*SubscribeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.
func (*SubscribeRequest) GetTopic ¶
func (x *SubscribeRequest) GetTopic() string
func (*SubscribeRequest) ProtoMessage ¶
func (*SubscribeRequest) ProtoMessage()
func (*SubscribeRequest) ProtoReflect ¶ added in v2.9.8
func (x *SubscribeRequest) ProtoReflect() protoreflect.Message
func (*SubscribeRequest) Reset ¶
func (x *SubscribeRequest) Reset()
func (*SubscribeRequest) String ¶
func (x *SubscribeRequest) String() string
type SubscribeResponse ¶
type SubscribeResponse struct {
// contains filtered or unexported fields
}
func (*SubscribeResponse) Descriptor
deprecated
func (*SubscribeResponse) Descriptor() ([]byte, []int)
Deprecated: Use SubscribeResponse.ProtoReflect.Descriptor instead.
func (*SubscribeResponse) ProtoMessage ¶
func (*SubscribeResponse) ProtoMessage()
func (*SubscribeResponse) ProtoReflect ¶ added in v2.9.8
func (x *SubscribeResponse) ProtoReflect() protoreflect.Message
func (*SubscribeResponse) Reset ¶
func (x *SubscribeResponse) Reset()
func (*SubscribeResponse) String ¶
func (x *SubscribeResponse) String() string
Click to show internal directories.
Click to hide internal directories.