Documentation ¶
Overview ¶
Package helloworld is a generated protocol buffer package.
It is generated from these files:
helloworld.proto
It has these top-level messages:
HelloReq HelloResp
Index ¶
Constants ¶
View Source
const HelloWorldPathPrefix string = "/xservice/example.helloworld.HelloWorld/"
//[HelloWorldPathPrefix HelloWorld] is used for all URL paths on a %!s(MISSING) server. Requests are always: POST HelloWorldPathPrefix /method It can be used in an HTTP mux to route requests
Variables ¶
This section is empty.
Functions ¶
func NewHelloWorldServer ¶
func NewHelloWorldServer(svc HelloWorld, hooks *hooks.ServerHooks, errorFunc ...transport.LogErrorFunc) server.Server
NewHelloWorldServer constructs a new server, and implements HelloWorld
Types ¶
type HelloReq ¶
type HelloReq struct {
Subject string `protobuf:"bytes,1,opt,name=subject" json:"subject,omitempty"`
}
func (*HelloReq) Descriptor ¶
func (*HelloReq) GetSubject ¶
func (*HelloReq) ProtoMessage ¶
func (*HelloReq) ProtoMessage()
type HelloResp ¶
type HelloResp struct {
Text string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
}
func (*HelloResp) Descriptor ¶
func (*HelloResp) ProtoMessage ¶
func (*HelloResp) ProtoMessage()
type HelloWorld ¶
func NewHelloWorldJSONClient ¶
func NewHelloWorldJSONClient(addr string, client transport.HTTPClient) HelloWorld
NewHelloWorldJSONClient constructs a new client, which wraps the http.client and implements HelloWorld
func NewHelloWorldProtobufferClient ¶
func NewHelloWorldProtobufferClient(addr string, client transport.HTTPClient) HelloWorld
NewHelloWorldProtobufferClient constructs a new client, which wraps the http.client and implements HelloWorld
Click to show internal directories.
Click to hide internal directories.