package pb
import "github.com/go-kit/kit/transport/grpc/_grpc_test/pb"
Package pb is a generated protocol buffer package.
It is generated from these files:
test.proto
It has these top-level messages:
TestRequest TestResponse
Index ¶
- func RegisterTestServer(s *grpc.Server, srv TestServer)
- type TestClient
- type TestRequest
- func (*TestRequest) Descriptor() ([]byte, []int)
- func (m *TestRequest) GetA() string
- func (m *TestRequest) GetB() int64
- func (*TestRequest) ProtoMessage()
- func (m *TestRequest) Reset()
- func (m *TestRequest) String() string
- type TestResponse
- func (*TestResponse) Descriptor() ([]byte, []int)
- func (m *TestResponse) GetV() string
- func (*TestResponse) ProtoMessage()
- func (m *TestResponse) Reset()
- func (m *TestResponse) String() string
- type TestServer
Functions ¶
func RegisterTestServer ¶
func RegisterTestServer(s *grpc.Server, srv TestServer)
Types ¶
type TestClient ¶
type TestClient interface { Test(ctx context.Context, in *TestRequest, opts ...grpc.CallOption) (*TestResponse, error) }
func NewTestClient ¶
func NewTestClient(cc *grpc.ClientConn) TestClient
type TestRequest ¶
type TestRequest struct { A string `protobuf:"bytes,1,opt,name=a" json:"a,omitempty"` B int64 `protobuf:"varint,2,opt,name=b" json:"b,omitempty"` }
func (*TestRequest) Descriptor ¶
func (*TestRequest) Descriptor() ([]byte, []int)
func (*TestRequest) GetA ¶
func (m *TestRequest) GetA() string
func (*TestRequest) GetB ¶
func (m *TestRequest) GetB() int64
func (*TestRequest) ProtoMessage ¶
func (*TestRequest) ProtoMessage()
func (*TestRequest) Reset ¶
func (m *TestRequest) Reset()
func (*TestRequest) String ¶
func (m *TestRequest) String() string
type TestResponse ¶
type TestResponse struct { V string `protobuf:"bytes,1,opt,name=v" json:"v,omitempty"` }
func (*TestResponse) Descriptor ¶
func (*TestResponse) Descriptor() ([]byte, []int)
func (*TestResponse) GetV ¶
func (m *TestResponse) GetV() string
func (*TestResponse) ProtoMessage ¶
func (*TestResponse) ProtoMessage()
func (*TestResponse) Reset ¶
func (m *TestResponse) Reset()
func (*TestResponse) String ¶
func (m *TestResponse) String() string
type TestServer ¶
type TestServer interface { Test(context.Context, *TestRequest) (*TestResponse, error) }
Source Files ¶
- Version
- v0.5.0
- Published
- Jun 8, 2017
- Platform
- darwin/amd64
- Imports
- 5 packages
- Last checked
- 2 minutes ago –
Tools for package owners.