Documentation ¶
Index ¶
- Variables
- func NewServerEndpoints() []*api.Endpoint
- func NewServerOpenAPI() *registry.OpenAPI
- func RegisterServerHandler(s server.Server, hdlr ServerHandler, opts ...server.HandlerOption) error
- func RegisterServerServer(s *grpc.Server, srv ServerServer)
- type HandleRequest
- func (*HandleRequest) Descriptor() ([]byte, []int)
- func (m *HandleRequest) GetEndpoint() string
- func (m *HandleRequest) GetProtocol() string
- func (m *HandleRequest) GetService() string
- func (m *HandleRequest) Marshal() (dAtA []byte, err error)
- func (m *HandleRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *HandleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HandleRequest) ProtoMessage()
- func (m *HandleRequest) Reset()
- func (m *HandleRequest) Size() (n int)
- func (m *HandleRequest) String() string
- func (m *HandleRequest) Unmarshal(dAtA []byte) error
- func (m *HandleRequest) XXX_DiscardUnknown()
- func (m *HandleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HandleRequest) XXX_Merge(src proto.Message)
- func (m *HandleRequest) XXX_Size() int
- func (m *HandleRequest) XXX_Unmarshal(b []byte) error
- type HandleResponse
- func (*HandleResponse) Descriptor() ([]byte, []int)
- func (m *HandleResponse) Marshal() (dAtA []byte, err error)
- func (m *HandleResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *HandleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HandleResponse) ProtoMessage()
- func (m *HandleResponse) Reset()
- func (m *HandleResponse) Size() (n int)
- func (m *HandleResponse) String() string
- func (m *HandleResponse) Unmarshal(dAtA []byte) error
- func (m *HandleResponse) XXX_DiscardUnknown()
- func (m *HandleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HandleResponse) XXX_Merge(src proto.Message)
- func (m *HandleResponse) XXX_Size() int
- func (m *HandleResponse) XXX_Unmarshal(b []byte) error
- type ServerClient
- type ServerHandler
- type ServerServer
- type ServerService
- type SubscribeRequest
- func (*SubscribeRequest) Descriptor() ([]byte, []int)
- func (m *SubscribeRequest) GetTopic() string
- func (m *SubscribeRequest) Marshal() (dAtA []byte, err error)
- func (m *SubscribeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *SubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubscribeRequest) ProtoMessage()
- func (m *SubscribeRequest) Reset()
- func (m *SubscribeRequest) Size() (n int)
- func (m *SubscribeRequest) String() string
- func (m *SubscribeRequest) Unmarshal(dAtA []byte) error
- func (m *SubscribeRequest) XXX_DiscardUnknown()
- func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubscribeRequest) XXX_Merge(src proto.Message)
- func (m *SubscribeRequest) XXX_Size() int
- func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error
- type SubscribeResponse
- func (*SubscribeResponse) Descriptor() ([]byte, []int)
- func (m *SubscribeResponse) Marshal() (dAtA []byte, err error)
- func (m *SubscribeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *SubscribeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubscribeResponse) ProtoMessage()
- func (m *SubscribeResponse) Reset()
- func (m *SubscribeResponse) Size() (n int)
- func (m *SubscribeResponse) String() string
- func (m *SubscribeResponse) Unmarshal(dAtA []byte) error
- func (m *SubscribeResponse) XXX_DiscardUnknown()
- func (m *SubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubscribeResponse) XXX_Merge(src proto.Message)
- func (m *SubscribeResponse) XXX_Size() int
- func (m *SubscribeResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedServerServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewServerEndpoints ¶
API Endpoints for Server service
func NewServerOpenAPI ¶ added in v0.8.4
Swagger OpenAPI 3.0 for Server service
func RegisterServerHandler ¶
func RegisterServerHandler(s server.Server, hdlr ServerHandler, opts ...server.HandlerOption) error
func RegisterServerServer ¶
func RegisterServerServer(s *grpc.Server, srv ServerServer)
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"` }
func (*HandleRequest) Descriptor ¶
func (*HandleRequest) Descriptor() ([]byte, []int)
func (*HandleRequest) GetEndpoint ¶
func (m *HandleRequest) GetEndpoint() string
func (*HandleRequest) GetProtocol ¶
func (m *HandleRequest) GetProtocol() string
func (*HandleRequest) GetService ¶
func (m *HandleRequest) GetService() string
func (*HandleRequest) Marshal ¶
func (m *HandleRequest) Marshal() (dAtA []byte, err error)
func (*HandleRequest) MarshalToSizedBuffer ¶
func (m *HandleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HandleRequest) ProtoMessage ¶
func (*HandleRequest) ProtoMessage()
func (*HandleRequest) Reset ¶
func (m *HandleRequest) Reset()
func (*HandleRequest) Size ¶
func (m *HandleRequest) Size() (n int)
func (*HandleRequest) String ¶
func (m *HandleRequest) String() string
func (*HandleRequest) Unmarshal ¶
func (m *HandleRequest) Unmarshal(dAtA []byte) error
func (*HandleRequest) XXX_DiscardUnknown ¶
func (m *HandleRequest) XXX_DiscardUnknown()
func (*HandleRequest) XXX_Marshal ¶
func (m *HandleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HandleRequest) XXX_Merge ¶
func (m *HandleRequest) XXX_Merge(src proto.Message)
func (*HandleRequest) XXX_Size ¶
func (m *HandleRequest) XXX_Size() int
func (*HandleRequest) XXX_Unmarshal ¶
func (m *HandleRequest) XXX_Unmarshal(b []byte) error
type HandleResponse ¶
type HandleResponse struct { }
func (*HandleResponse) Descriptor ¶
func (*HandleResponse) Descriptor() ([]byte, []int)
func (*HandleResponse) Marshal ¶
func (m *HandleResponse) Marshal() (dAtA []byte, err error)
func (*HandleResponse) MarshalToSizedBuffer ¶
func (m *HandleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HandleResponse) ProtoMessage ¶
func (*HandleResponse) ProtoMessage()
func (*HandleResponse) Reset ¶
func (m *HandleResponse) Reset()
func (*HandleResponse) Size ¶
func (m *HandleResponse) Size() (n int)
func (*HandleResponse) String ¶
func (m *HandleResponse) String() string
func (*HandleResponse) Unmarshal ¶
func (m *HandleResponse) Unmarshal(dAtA []byte) error
func (*HandleResponse) XXX_DiscardUnknown ¶
func (m *HandleResponse) XXX_DiscardUnknown()
func (*HandleResponse) XXX_Marshal ¶
func (m *HandleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HandleResponse) XXX_Merge ¶
func (m *HandleResponse) XXX_Merge(src proto.Message)
func (*HandleResponse) XXX_Size ¶
func (m *HandleResponse) XXX_Size() int
func (*HandleResponse) XXX_Unmarshal ¶
func (m *HandleResponse) XXX_Unmarshal(b []byte) error
type ServerClient ¶
type ServerClient interface { Handle(ctx context.Context, in *HandleRequest, opts ...grpc.CallOption) (*HandleResponse, error) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (*SubscribeResponse, error) }
ServerClient is the client API for Server service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServerClient ¶
func NewServerClient(cc *grpc.ClientConn) ServerClient
type ServerHandler ¶
type ServerHandler interface { Handle(context.Context, *HandleRequest, *HandleResponse) error Subscribe(context.Context, *SubscribeRequest, *SubscribeResponse) error }
Server API for Server service
type ServerServer ¶
type ServerServer interface { Handle(context.Context, *HandleRequest) (*HandleResponse, error) Subscribe(context.Context, *SubscribeRequest) (*SubscribeResponse, error) }
ServerServer 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) }
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"`
}
func (*SubscribeRequest) Descriptor ¶
func (*SubscribeRequest) Descriptor() ([]byte, []int)
func (*SubscribeRequest) GetTopic ¶
func (m *SubscribeRequest) GetTopic() string
func (*SubscribeRequest) Marshal ¶
func (m *SubscribeRequest) Marshal() (dAtA []byte, err error)
func (*SubscribeRequest) MarshalToSizedBuffer ¶
func (m *SubscribeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SubscribeRequest) ProtoMessage ¶
func (*SubscribeRequest) ProtoMessage()
func (*SubscribeRequest) Reset ¶
func (m *SubscribeRequest) Reset()
func (*SubscribeRequest) Size ¶
func (m *SubscribeRequest) Size() (n int)
func (*SubscribeRequest) String ¶
func (m *SubscribeRequest) String() string
func (*SubscribeRequest) Unmarshal ¶
func (m *SubscribeRequest) Unmarshal(dAtA []byte) error
func (*SubscribeRequest) XXX_DiscardUnknown ¶
func (m *SubscribeRequest) XXX_DiscardUnknown()
func (*SubscribeRequest) XXX_Marshal ¶
func (m *SubscribeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubscribeRequest) XXX_Merge ¶
func (m *SubscribeRequest) XXX_Merge(src proto.Message)
func (*SubscribeRequest) XXX_Size ¶
func (m *SubscribeRequest) XXX_Size() int
func (*SubscribeRequest) XXX_Unmarshal ¶
func (m *SubscribeRequest) XXX_Unmarshal(b []byte) error
type SubscribeResponse ¶
type SubscribeResponse struct { }
func (*SubscribeResponse) Descriptor ¶
func (*SubscribeResponse) Descriptor() ([]byte, []int)
func (*SubscribeResponse) Marshal ¶
func (m *SubscribeResponse) Marshal() (dAtA []byte, err error)
func (*SubscribeResponse) MarshalTo ¶
func (m *SubscribeResponse) MarshalTo(dAtA []byte) (int, error)
func (*SubscribeResponse) MarshalToSizedBuffer ¶
func (m *SubscribeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SubscribeResponse) ProtoMessage ¶
func (*SubscribeResponse) ProtoMessage()
func (*SubscribeResponse) Reset ¶
func (m *SubscribeResponse) Reset()
func (*SubscribeResponse) Size ¶
func (m *SubscribeResponse) Size() (n int)
func (*SubscribeResponse) String ¶
func (m *SubscribeResponse) String() string
func (*SubscribeResponse) Unmarshal ¶
func (m *SubscribeResponse) Unmarshal(dAtA []byte) error
func (*SubscribeResponse) XXX_DiscardUnknown ¶
func (m *SubscribeResponse) XXX_DiscardUnknown()
func (*SubscribeResponse) XXX_Marshal ¶
func (m *SubscribeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubscribeResponse) XXX_Merge ¶
func (m *SubscribeResponse) XXX_Merge(src proto.Message)
func (*SubscribeResponse) XXX_Size ¶
func (m *SubscribeResponse) XXX_Size() int
func (*SubscribeResponse) XXX_Unmarshal ¶
func (m *SubscribeResponse) XXX_Unmarshal(b []byte) error
type UnimplementedServerServer ¶
type UnimplementedServerServer struct { }
UnimplementedServerServer can be embedded to have forward compatible implementations.
func (*UnimplementedServerServer) Handle ¶
func (*UnimplementedServerServer) Handle(ctx context.Context, req *HandleRequest) (*HandleResponse, error)
func (*UnimplementedServerServer) Subscribe ¶
func (*UnimplementedServerServer) Subscribe(ctx context.Context, req *SubscribeRequest) (*SubscribeResponse, error)
Click to show internal directories.
Click to hide internal directories.