package testpb
import "go.opencensus.io/internal/testpb"
Package testpb is a generated protocol buffer package.
It is generated from these files:
test.proto
It has these top-level messages:
FooRequest FooResponse
Index ¶
- func RegisterFooServer(s *grpc.Server, srv FooServer)
- type FooClient
- func NewFooClient(cc *grpc.ClientConn) FooClient
- func NewTestClient(l *testing.T) (client FooClient, cleanup func())
- type FooRequest
- func (*FooRequest) Descriptor() ([]byte, []int)
- func (m *FooRequest) GetFail() bool
- func (m *FooRequest) GetSleepNanos() int64
- func (*FooRequest) ProtoMessage()
- func (m *FooRequest) Reset()
- func (m *FooRequest) String() string
- type FooResponse
- func (*FooResponse) Descriptor() ([]byte, []int)
- func (*FooResponse) ProtoMessage()
- func (m *FooResponse) Reset()
- func (m *FooResponse) String() string
- type FooServer
- type Foo_MultipleClient
- type Foo_MultipleServer
Functions ¶
func RegisterFooServer ¶
Types ¶
type FooClient ¶
type FooClient interface { Single(ctx context.Context, in *FooRequest, opts ...grpc.CallOption) (*FooResponse, error) Multiple(ctx context.Context, opts ...grpc.CallOption) (Foo_MultipleClient, error) }
func NewFooClient ¶
func NewFooClient(cc *grpc.ClientConn) FooClient
func NewTestClient ¶
NewTestClient returns a new TestClient.
type FooRequest ¶
type FooRequest struct { Fail bool `protobuf:"varint,1,opt,name=fail" json:"fail,omitempty"` SleepNanos int64 `protobuf:"varint,2,opt,name=sleep_nanos,json=sleepNanos" json:"sleep_nanos,omitempty"` }
func (*FooRequest) Descriptor ¶
func (*FooRequest) Descriptor() ([]byte, []int)
func (*FooRequest) GetFail ¶
func (m *FooRequest) GetFail() bool
func (*FooRequest) GetSleepNanos ¶
func (m *FooRequest) GetSleepNanos() int64
func (*FooRequest) ProtoMessage ¶
func (*FooRequest) ProtoMessage()
func (*FooRequest) Reset ¶
func (m *FooRequest) Reset()
func (*FooRequest) String ¶
func (m *FooRequest) String() string
type FooResponse ¶
type FooResponse struct { }
func (*FooResponse) Descriptor ¶
func (*FooResponse) Descriptor() ([]byte, []int)
func (*FooResponse) ProtoMessage ¶
func (*FooResponse) ProtoMessage()
func (*FooResponse) Reset ¶
func (m *FooResponse) Reset()
func (*FooResponse) String ¶
func (m *FooResponse) String() string
type FooServer ¶
type FooServer interface { Single(context.Context, *FooRequest) (*FooResponse, error) Multiple(Foo_MultipleServer) error }
type Foo_MultipleClient ¶
type Foo_MultipleClient interface { Send(*FooRequest) error Recv() (*FooResponse, error) grpc.ClientStream }
type Foo_MultipleServer ¶
type Foo_MultipleServer interface { Send(*FooResponse) error Recv() (*FooRequest, error) grpc.ServerStream }
Source Files ¶
impl.go test.pb.go
- Version
- v0.24.0 (latest)
- Published
- Nov 3, 2022
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 9 hours ago –
Tools for package owners.