benchmark

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_benchmark_proto protoreflect.FileDescriptor

Functions

func RegisterBenchmarkServer

func RegisterBenchmarkServer(s *grpc.Server, srv BenchmarkServer)

Types

type BenchmarkClient

type BenchmarkClient interface {
	Benchmark(ctx context.Context, in *BenchmarkReq, opts ...grpc.CallOption) (*BenchmarkResp, error)
}

BenchmarkClient is the client API for Benchmark service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewBenchmarkClient

func NewBenchmarkClient(cc grpc.ClientConnInterface) BenchmarkClient

type BenchmarkReq

type BenchmarkReq struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BenchmarkReq) Descriptor deprecated

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

Deprecated: Use BenchmarkReq.ProtoReflect.Descriptor instead.

func (*BenchmarkReq) GetData

func (x *BenchmarkReq) GetData() []byte

func (*BenchmarkReq) ProtoMessage

func (*BenchmarkReq) ProtoMessage()

func (*BenchmarkReq) ProtoReflect

func (x *BenchmarkReq) ProtoReflect() protoreflect.Message

func (*BenchmarkReq) Reset

func (x *BenchmarkReq) Reset()

func (*BenchmarkReq) String

func (x *BenchmarkReq) String() string

type BenchmarkResp

type BenchmarkResp struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BenchmarkResp) Descriptor deprecated

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

Deprecated: Use BenchmarkResp.ProtoReflect.Descriptor instead.

func (*BenchmarkResp) GetData

func (x *BenchmarkResp) GetData() []byte

func (*BenchmarkResp) ProtoMessage

func (*BenchmarkResp) ProtoMessage()

func (*BenchmarkResp) ProtoReflect

func (x *BenchmarkResp) ProtoReflect() protoreflect.Message

func (*BenchmarkResp) Reset

func (x *BenchmarkResp) Reset()

func (*BenchmarkResp) String

func (x *BenchmarkResp) String() string

type BenchmarkServer

type BenchmarkServer interface {
	Benchmark(context.Context, *BenchmarkReq) (*BenchmarkResp, error)
}

BenchmarkServer is the server API for Benchmark service.

type UnimplementedBenchmarkServer

type UnimplementedBenchmarkServer struct {
}

UnimplementedBenchmarkServer can be embedded to have forward compatible implementations.

func (*UnimplementedBenchmarkServer) Benchmark

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL