Versions in this module Expand all Collapse all v0 v0.0.6 Mar 8, 2024 v0.0.5 Nov 8, 2023 Changes in this version + func RegisterGreeterServer(s *grpc.Server, srv GreeterServer) + type CallType string + var Bidi CallType = "bidi" + var ClientStream CallType = "cs" + var ServerStream CallType = "ss" + var Unary CallType = "unary" + type Greeter struct + Stats *HWStatsHandler + StreamData []*HelloReply + func NewGreeter() *Greeter + func (s *Greeter) GetCalls(key CallType) [][]*HelloRequest + func (s *Greeter) GetConnectionCount() int + func (s *Greeter) GetCount(key CallType) int + func (s *Greeter) GetCountByWorker(key CallType) map[string]int + func (s *Greeter) GetSendCounts(key CallType) map[int]int + func (s *Greeter) ResetCounters() + func (s *Greeter) SayHello(ctx context.Context, in *HelloRequest) (*HelloReply, error) + func (s *Greeter) SayHelloBidi(stream Greeter_SayHelloBidiServer) error + func (s *Greeter) SayHelloCS(stream Greeter_SayHelloCSServer) error + func (s *Greeter) SayHellos(req *HelloRequest, stream Greeter_SayHellosServer) error + type GreeterClient interface + SayHello func(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) + SayHelloBidi func(ctx context.Context, opts ...grpc.CallOption) (Greeter_SayHelloBidiClient, error) + SayHelloCS func(ctx context.Context, opts ...grpc.CallOption) (Greeter_SayHelloCSClient, error) + SayHellos func(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (Greeter_SayHellosClient, error) + func NewGreeterClient(cc *grpc.ClientConn) GreeterClient + type GreeterServer interface + SayHello func(context.Context, *HelloRequest) (*HelloReply, error) + SayHelloBidi func(Greeter_SayHelloBidiServer) error + SayHelloCS func(Greeter_SayHelloCSServer) error + SayHellos func(*HelloRequest, Greeter_SayHellosServer) error + type Greeter_SayHelloBidiClient interface + Recv func() (*HelloReply, error) + Send func(*HelloRequest) error + type Greeter_SayHelloBidiServer interface + Recv func() (*HelloRequest, error) + Send func(*HelloReply) error + type Greeter_SayHelloCSClient interface + CloseAndRecv func() (*HelloReply, error) + Send func(*HelloRequest) error + type Greeter_SayHelloCSServer interface + Recv func() (*HelloRequest, error) + SendAndClose func(*HelloReply) error + type Greeter_SayHellosClient interface + Recv func() (*HelloReply, error) + type Greeter_SayHellosServer interface + Send func(*HelloReply) error + type HWStatsHandler struct + func NewHWStats() *HWStatsHandler + func (c *HWStatsHandler) GetConnectionCount() int + func (c *HWStatsHandler) HandleConn(ctx context.Context, cs stats.ConnStats) + func (c *HWStatsHandler) HandleRPC(ctx context.Context, rs stats.RPCStats) + func (c *HWStatsHandler) TagConn(ctx context.Context, cti *stats.ConnTagInfo) context.Context + func (c *HWStatsHandler) TagRPC(ctx context.Context, info *stats.RPCTagInfo) context.Context + type HelloReply struct + Message string + func (*HelloReply) Descriptor() ([]byte, []int) + func (*HelloReply) ProtoMessage() + func (m *HelloReply) GetMessage() string + func (m *HelloReply) Reset() + func (m *HelloReply) String() string + type HelloRequest struct + Name string + func (*HelloRequest) Descriptor() ([]byte, []int) + func (*HelloRequest) ProtoMessage() + func (m *HelloRequest) GetName() string + func (m *HelloRequest) Reset() + func (m *HelloRequest) String() string