Documentation ¶
Overview ¶
Package foo_service is a generated protocol buffer package.
It is generated from these files:
simple-service.proto
It has these top-level messages:
HelloRequest HelloResponse CountToRequest CountToResponse MessageRequest Message
Generated by protoc-gen-gokit DO NOT EDIT.
Index ¶
- func Decode_FooService_CountTo(ctx context.Context, req *http.Request) (interface{}, error)
- func Decode_FooService_PostHello(ctx context.Context, req *http.Request) (interface{}, error)
- func Decode_FooService_PostMessage(ctx context.Context, req *http.Request) (interface{}, error)
- func Decode_FooService_SayHello(ctx context.Context, req *http.Request) (interface{}, error)
- func MakeEndpoint_FooService_CountTo(cli FooServiceClient) endpoint.Endpoint
- func MakeEndpoint_FooService_PostHello(cli FooServiceClient) endpoint.Endpoint
- func MakeEndpoint_FooService_PostMessage(cli FooServiceClient) endpoint.Endpoint
- func MakeEndpoint_FooService_SayHello(cli FooServiceClient) endpoint.Endpoint
- func MakeMux_FooService(cli FooServiceClient, mw endpoint.Middleware, ...) (http.Handler, error)
- func RegisterFooServiceServer(s *grpc.Server, srv FooServiceServer)
- type CountToRequest
- type CountToResponse
- type FooServiceClient
- type FooServiceServer
- type HelloRequest
- type HelloResponse
- type Message
- type MessageRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode_FooService_CountTo ¶
Decode_FooService_CountTo decodes an http.Request into a CountToRequest.
func Decode_FooService_PostHello ¶
Decode_FooService_PostHello decodes an http.Request into a HelloRequest.
func Decode_FooService_PostMessage ¶
Decode_FooService_PostMessage decodes an http.Request into a MessageRequest.
func Decode_FooService_SayHello ¶
Decode_FooService_SayHello decodes an http.Request into a HelloRequest.
func MakeEndpoint_FooService_CountTo ¶
func MakeEndpoint_FooService_CountTo(cli FooServiceClient) endpoint.Endpoint
MakeEndpoint_FooService_CountTo creates an endpoint function for Go-kit that runs the specified service / endpoint on the specified grpc endpoint.
func MakeEndpoint_FooService_PostHello ¶
func MakeEndpoint_FooService_PostHello(cli FooServiceClient) endpoint.Endpoint
MakeEndpoint_FooService_PostHello creates an endpoint function for Go-kit that runs the specified service / endpoint on the specified grpc endpoint.
func MakeEndpoint_FooService_PostMessage ¶
func MakeEndpoint_FooService_PostMessage(cli FooServiceClient) endpoint.Endpoint
MakeEndpoint_FooService_PostMessage creates an endpoint function for Go-kit that runs the specified service / endpoint on the specified grpc endpoint.
func MakeEndpoint_FooService_SayHello ¶
func MakeEndpoint_FooService_SayHello(cli FooServiceClient) endpoint.Endpoint
MakeEndpoint_FooService_SayHello creates an endpoint function for Go-kit that runs the specified service / endpoint on the specified grpc endpoint.
func MakeMux_FooService ¶
func MakeMux_FooService(cli FooServiceClient, mw endpoint.Middleware, responseEncoder kithttp.EncodeResponseFunc, options ...kithttp.ServerOption) (http.Handler, error)
MakeMux_FooService creates a server mux for the FooService service, using the passed kithttp.Server as a template for the parameters of the endpoints.
func RegisterFooServiceServer ¶
func RegisterFooServiceServer(s *grpc.Server, srv FooServiceServer)
Types ¶
type CountToRequest ¶
type CountToRequest struct {
Target int32 `protobuf:"varint,1,opt,name=target" json:"target,omitempty"`
}
func (*CountToRequest) Descriptor ¶
func (*CountToRequest) Descriptor() ([]byte, []int)
func (*CountToRequest) ProtoMessage ¶
func (*CountToRequest) ProtoMessage()
func (*CountToRequest) Reset ¶
func (m *CountToRequest) Reset()
func (*CountToRequest) String ¶
func (m *CountToRequest) String() string
type CountToResponse ¶
type CountToResponse struct {
Response string `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
func (*CountToResponse) Descriptor ¶
func (*CountToResponse) Descriptor() ([]byte, []int)
func (*CountToResponse) ProtoMessage ¶
func (*CountToResponse) ProtoMessage()
func (*CountToResponse) Reset ¶
func (m *CountToResponse) Reset()
func (*CountToResponse) String ¶
func (m *CountToResponse) String() string
type FooServiceClient ¶
type FooServiceClient interface { SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error) PostHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error) PostMessage(ctx context.Context, in *MessageRequest, opts ...grpc.CallOption) (*Message, error) CountTo(ctx context.Context, in *CountToRequest, opts ...grpc.CallOption) (*CountToResponse, error) }
func NewFooServiceClient ¶
func NewFooServiceClient(cc *grpc.ClientConn) FooServiceClient
type FooServiceServer ¶
type FooServiceServer interface { SayHello(context.Context, *HelloRequest) (*HelloResponse, error) PostHello(context.Context, *HelloRequest) (*HelloResponse, error) PostMessage(context.Context, *MessageRequest) (*Message, error) CountTo(context.Context, *CountToRequest) (*CountToResponse, error) }
type HelloRequest ¶
type HelloRequest struct {
Who string `protobuf:"bytes,1,opt,name=who" json:"who,omitempty"`
}
func (*HelloRequest) Descriptor ¶
func (*HelloRequest) Descriptor() ([]byte, []int)
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) Reset ¶
func (m *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (m *HelloRequest) String() string
type HelloResponse ¶
type HelloResponse struct {
Response string `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
}
func (*HelloResponse) Descriptor ¶
func (*HelloResponse) Descriptor() ([]byte, []int)
func (*HelloResponse) ProtoMessage ¶
func (*HelloResponse) ProtoMessage()
func (*HelloResponse) Reset ¶
func (m *HelloResponse) Reset()
func (*HelloResponse) String ¶
func (m *HelloResponse) String() string
type Message ¶
type Message struct { Hello string `protobuf:"bytes,1,opt,name=hello" json:"hello,omitempty"` World string `protobuf:"bytes,2,opt,name=world" json:"world,omitempty"` }
func (*Message) Descriptor ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type MessageRequest ¶
type MessageRequest struct {
MessageBody *Message `protobuf:"bytes,1,opt,name=messageBody" json:"messageBody,omitempty"`
}
func (*MessageRequest) Descriptor ¶
func (*MessageRequest) Descriptor() ([]byte, []int)
func (*MessageRequest) GetMessageBody ¶
func (m *MessageRequest) GetMessageBody() *Message
func (*MessageRequest) ProtoMessage ¶
func (*MessageRequest) ProtoMessage()
func (*MessageRequest) Reset ¶
func (m *MessageRequest) Reset()
func (*MessageRequest) String ¶
func (m *MessageRequest) String() string