stackdriver: contrib.go.opencensus.io/exporter/stackdriver/internal/testpb Index | Files

package testpb

import "contrib.go.opencensus.io/exporter/stackdriver/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

Package Files

impl.go test.pb.go

func RegisterFooServer Uses

func RegisterFooServer(s *grpc.Server, srv FooServer)

type FooClient Uses

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 Uses

func NewFooClient(cc *grpc.ClientConn) FooClient

func NewTestClient Uses

func NewTestClient(l *testing.T) (client FooClient, cleanup func())

NewTestClient is used for internal testing only. It creates a grpc server and client. It returns client and cleanup function to close the connection and gracefully stop the server.

type FooRequest Uses

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 Uses

func (*FooRequest) Descriptor() ([]byte, []int)

func (*FooRequest) GetFail Uses

func (m *FooRequest) GetFail() bool

func (*FooRequest) GetSleepNanos Uses

func (m *FooRequest) GetSleepNanos() int64

func (*FooRequest) ProtoMessage Uses

func (*FooRequest) ProtoMessage()

func (*FooRequest) Reset Uses

func (m *FooRequest) Reset()

func (*FooRequest) String Uses

func (m *FooRequest) String() string

type FooResponse Uses

type FooResponse struct {
}

func (*FooResponse) Descriptor Uses

func (*FooResponse) Descriptor() ([]byte, []int)

func (*FooResponse) ProtoMessage Uses

func (*FooResponse) ProtoMessage()

func (*FooResponse) Reset Uses

func (m *FooResponse) Reset()

func (*FooResponse) String Uses

func (m *FooResponse) String() string

type FooServer Uses

type FooServer interface {
    Single(context.Context, *FooRequest) (*FooResponse, error)
    Multiple(Foo_MultipleServer) error
}

type Foo_MultipleClient Uses

type Foo_MultipleClient interface {
    Send(*FooRequest) error
    Recv() (*FooResponse, error)
    grpc.ClientStream
}

type Foo_MultipleServer Uses

type Foo_MultipleServer interface {
    Send(*FooResponse) error
    Recv() (*FooRequest, error)
    grpc.ServerStream
}

Package testpb imports 12 packages (graph). Updated 2019-05-18. Refresh now. Tools for package owners.