Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
ping.proto
It has these top-level messages:
Void Info
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTestServer ¶
func RegisterTestServer(s *grpc.Server, srv TestServer)
Types ¶
type Info ¶
type Info struct {
Version string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
}
Info 呈現一個帶有服務版本號的資料。
func (*Info) Descriptor ¶
func (*Info) GetVersion ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
type TestClient ¶
type TestClient interface {
Ping(ctx context.Context, in *Void, opts ...grpc.CallOption) (*Info, error)
}
func NewTestClient ¶
func NewTestClient(cc *grpc.ClientConn) TestClient
Click to show internal directories.
Click to hide internal directories.