Documentation ¶
Index ¶
- Variables
- func RegisterBenchServiceServer(s *grpc.Server, srv BenchServiceServer)
- type BenchArgs
- type BenchFriend
- type BenchMessage
- func (*BenchMessage) Descriptor() ([]byte, []int)deprecated
- func (x *BenchMessage) GetAbout() string
- func (x *BenchMessage) GetAddress() string
- func (x *BenchMessage) GetAge() int64
- func (x *BenchMessage) GetBalance() string
- func (x *BenchMessage) GetCompany() string
- func (x *BenchMessage) GetEmail() string
- func (x *BenchMessage) GetEyeColor() string
- func (x *BenchMessage) GetFavoriteFruit() string
- func (x *BenchMessage) GetFriends() []*BenchFriend
- func (x *BenchMessage) GetGender() string
- func (x *BenchMessage) GetGreeting() string
- func (x *BenchMessage) GetGuid() string
- func (x *BenchMessage) GetIndex() int64
- func (x *BenchMessage) GetIsActive() bool
- func (x *BenchMessage) GetLatitude() float64
- func (x *BenchMessage) GetLongitude() float64
- func (x *BenchMessage) GetName() string
- func (x *BenchMessage) GetPhone() string
- func (x *BenchMessage) GetPicture() string
- func (x *BenchMessage) GetRegistered() string
- func (x *BenchMessage) GetTags() []string
- func (x *BenchMessage) GetXId() string
- func (*BenchMessage) ProtoMessage()
- func (x *BenchMessage) ProtoReflect() protoreflect.Message
- func (x *BenchMessage) Reset()
- func (x *BenchMessage) String() string
- type BenchReply
- type BenchServiceClient
- type BenchServiceServer
- type SimpleMessage1
- func (*SimpleMessage1) Descriptor() ([]byte, []int)deprecated
- func (x *SimpleMessage1) GetA() int32
- func (x *SimpleMessage1) GetB() int32
- func (x *SimpleMessage1) GetC() string
- func (*SimpleMessage1) ProtoMessage()
- func (x *SimpleMessage1) ProtoReflect() protoreflect.Message
- func (x *SimpleMessage1) Reset()
- func (x *SimpleMessage1) String() string
- type UnimplementedBenchServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_bench_proto protoreflect.FileDescriptor
View Source
var File_simple_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBenchServiceServer ¶
func RegisterBenchServiceServer(s *grpc.Server, srv BenchServiceServer)
Types ¶
type BenchArgs ¶
type BenchArgs struct {
// contains filtered or unexported fields
}
func (*BenchArgs) Descriptor
deprecated
func (*BenchArgs) ProtoMessage ¶
func (*BenchArgs) ProtoMessage()
func (*BenchArgs) ProtoReflect ¶
func (x *BenchArgs) ProtoReflect() protoreflect.Message
type BenchFriend ¶
type BenchFriend struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*BenchFriend) Descriptor
deprecated
func (*BenchFriend) Descriptor() ([]byte, []int)
Deprecated: Use BenchFriend.ProtoReflect.Descriptor instead.
func (*BenchFriend) GetId ¶
func (x *BenchFriend) GetId() int64
func (*BenchFriend) GetName ¶
func (x *BenchFriend) GetName() string
func (*BenchFriend) ProtoMessage ¶
func (*BenchFriend) ProtoMessage()
func (*BenchFriend) ProtoReflect ¶
func (x *BenchFriend) ProtoReflect() protoreflect.Message
func (*BenchFriend) Reset ¶
func (x *BenchFriend) Reset()
func (*BenchFriend) String ¶
func (x *BenchFriend) String() string
type BenchMessage ¶
type BenchMessage struct { XId string `protobuf:"bytes,1,opt,name=_id,json=Id,proto3" json:"_id,omitempty"` Index int64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` Guid string `protobuf:"bytes,3,opt,name=guid,proto3" json:"guid,omitempty"` IsActive bool `protobuf:"varint,4,opt,name=isActive,proto3" json:"isActive,omitempty"` Balance string `protobuf:"bytes,5,opt,name=balance,proto3" json:"balance,omitempty"` Picture string `protobuf:"bytes,6,opt,name=picture,proto3" json:"picture,omitempty"` Age int64 `protobuf:"varint,7,opt,name=age,proto3" json:"age,omitempty"` EyeColor string `protobuf:"bytes,8,opt,name=eyeColor,proto3" json:"eyeColor,omitempty"` Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"` Gender string `protobuf:"bytes,10,opt,name=gender,proto3" json:"gender,omitempty"` Company string `protobuf:"bytes,11,opt,name=company,proto3" json:"company,omitempty"` Email string `protobuf:"bytes,12,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,13,opt,name=phone,proto3" json:"phone,omitempty"` Address string `protobuf:"bytes,14,opt,name=address,proto3" json:"address,omitempty"` About string `protobuf:"bytes,15,opt,name=about,proto3" json:"about,omitempty"` Registered string `protobuf:"bytes,16,opt,name=registered,proto3" json:"registered,omitempty"` Latitude float64 `protobuf:"fixed64,17,opt,name=latitude,proto3" json:"latitude,omitempty"` Longitude float64 `protobuf:"fixed64,18,opt,name=longitude,proto3" json:"longitude,omitempty"` Tags []string `protobuf:"bytes,19,rep,name=tags,proto3" json:"tags,omitempty"` Friends []*BenchFriend `protobuf:"bytes,20,rep,name=friends,proto3" json:"friends,omitempty"` Greeting string `protobuf:"bytes,21,opt,name=greeting,proto3" json:"greeting,omitempty"` FavoriteFruit string `protobuf:"bytes,22,opt,name=favoriteFruit,proto3" json:"favoriteFruit,omitempty"` // contains filtered or unexported fields }
func (*BenchMessage) Descriptor
deprecated
func (*BenchMessage) Descriptor() ([]byte, []int)
Deprecated: Use BenchMessage.ProtoReflect.Descriptor instead.
func (*BenchMessage) GetAbout ¶
func (x *BenchMessage) GetAbout() string
func (*BenchMessage) GetAddress ¶
func (x *BenchMessage) GetAddress() string
func (*BenchMessage) GetAge ¶
func (x *BenchMessage) GetAge() int64
func (*BenchMessage) GetBalance ¶
func (x *BenchMessage) GetBalance() string
func (*BenchMessage) GetCompany ¶
func (x *BenchMessage) GetCompany() string
func (*BenchMessage) GetEmail ¶
func (x *BenchMessage) GetEmail() string
func (*BenchMessage) GetEyeColor ¶
func (x *BenchMessage) GetEyeColor() string
func (*BenchMessage) GetFavoriteFruit ¶
func (x *BenchMessage) GetFavoriteFruit() string
func (*BenchMessage) GetFriends ¶
func (x *BenchMessage) GetFriends() []*BenchFriend
func (*BenchMessage) GetGender ¶
func (x *BenchMessage) GetGender() string
func (*BenchMessage) GetGreeting ¶
func (x *BenchMessage) GetGreeting() string
func (*BenchMessage) GetGuid ¶
func (x *BenchMessage) GetGuid() string
func (*BenchMessage) GetIndex ¶
func (x *BenchMessage) GetIndex() int64
func (*BenchMessage) GetIsActive ¶
func (x *BenchMessage) GetIsActive() bool
func (*BenchMessage) GetLatitude ¶
func (x *BenchMessage) GetLatitude() float64
func (*BenchMessage) GetLongitude ¶
func (x *BenchMessage) GetLongitude() float64
func (*BenchMessage) GetName ¶
func (x *BenchMessage) GetName() string
func (*BenchMessage) GetPhone ¶
func (x *BenchMessage) GetPhone() string
func (*BenchMessage) GetPicture ¶
func (x *BenchMessage) GetPicture() string
func (*BenchMessage) GetRegistered ¶
func (x *BenchMessage) GetRegistered() string
func (*BenchMessage) GetTags ¶
func (x *BenchMessage) GetTags() []string
func (*BenchMessage) GetXId ¶
func (x *BenchMessage) GetXId() string
func (*BenchMessage) ProtoMessage ¶
func (*BenchMessage) ProtoMessage()
func (*BenchMessage) ProtoReflect ¶
func (x *BenchMessage) ProtoReflect() protoreflect.Message
func (*BenchMessage) Reset ¶
func (x *BenchMessage) Reset()
func (*BenchMessage) String ¶
func (x *BenchMessage) String() string
type BenchReply ¶
type BenchReply struct { Msgs []*BenchMessage `protobuf:"bytes,1,rep,name=msgs,proto3" json:"msgs,omitempty"` // contains filtered or unexported fields }
func (*BenchReply) Descriptor
deprecated
func (*BenchReply) Descriptor() ([]byte, []int)
Deprecated: Use BenchReply.ProtoReflect.Descriptor instead.
func (*BenchReply) GetMsgs ¶
func (x *BenchReply) GetMsgs() []*BenchMessage
func (*BenchReply) ProtoMessage ¶
func (*BenchReply) ProtoMessage()
func (*BenchReply) ProtoReflect ¶
func (x *BenchReply) ProtoReflect() protoreflect.Message
func (*BenchReply) Reset ¶
func (x *BenchReply) Reset()
func (*BenchReply) String ¶
func (x *BenchReply) String() string
type BenchServiceClient ¶
type BenchServiceClient interface {
Test(ctx context.Context, in *BenchArgs, opts ...grpc.CallOption) (*BenchReply, error)
}
BenchServiceClient is the client API for BenchService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBenchServiceClient ¶
func NewBenchServiceClient(cc grpc.ClientConnInterface) BenchServiceClient
type BenchServiceServer ¶
type BenchServiceServer interface {
Test(context.Context, *BenchArgs) (*BenchReply, error)
}
BenchServiceServer is the server API for BenchService service.
type SimpleMessage1 ¶
type SimpleMessage1 struct { A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"` B int32 `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"` C string `protobuf:"bytes,3,opt,name=c,proto3" json:"c,omitempty"` // contains filtered or unexported fields }
func (*SimpleMessage1) Descriptor
deprecated
func (*SimpleMessage1) Descriptor() ([]byte, []int)
Deprecated: Use SimpleMessage1.ProtoReflect.Descriptor instead.
func (*SimpleMessage1) GetA ¶
func (x *SimpleMessage1) GetA() int32
func (*SimpleMessage1) GetB ¶
func (x *SimpleMessage1) GetB() int32
func (*SimpleMessage1) GetC ¶
func (x *SimpleMessage1) GetC() string
func (*SimpleMessage1) ProtoMessage ¶
func (*SimpleMessage1) ProtoMessage()
func (*SimpleMessage1) ProtoReflect ¶
func (x *SimpleMessage1) ProtoReflect() protoreflect.Message
func (*SimpleMessage1) Reset ¶
func (x *SimpleMessage1) Reset()
func (*SimpleMessage1) String ¶
func (x *SimpleMessage1) String() string
type UnimplementedBenchServiceServer ¶
type UnimplementedBenchServiceServer struct { }
UnimplementedBenchServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedBenchServiceServer) Test ¶
func (*UnimplementedBenchServiceServer) Test(context.Context, *BenchArgs) (*BenchReply, error)
Click to show internal directories.
Click to hide internal directories.