{"modulePath":"github.com/linuxsuren/api-testing","version":"v0.0.21","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package grpc_test\n\n## Variables\n\n```go\nvar File_pkg_runner_grpc_test_test_proto protoreflect.FileDescriptor\n```\n\n```go\nvar Main_ServiceDesc = grpc.ServiceDesc{\n\tServiceName: \"grpctest.Main\",\n\tHandlerType: (*MainServer)(nil),\n\tMethods: []grpc.MethodDesc{\n\t\t{\n\t\t\tMethodName: \"Unary\",\n\t\t\tHandler:    _Main_Unary_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"TestBasicType\",\n\t\t\tHandler:    _Main_TestBasicType_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"TestAdvancedType\",\n\t\t\tHandler:    _Main_TestAdvancedType_Handler,\n\t\t},\n\t},\n\tStreams: []grpc.StreamDesc{\n\t\t{\n\t\t\tStreamName:    \"ClientStream\",\n\t\t\tHandler:       _Main_ClientStream_Handler,\n\t\t\tClientStreams: true,\n\t\t},\n\t\t{\n\t\t\tStreamName:    \"ServerStream\",\n\t\t\tHandler:       _Main_ServerStream_Handler,\n\t\t\tServerStreams: true,\n\t\t},\n\t\t{\n\t\t\tStreamName:    \"BidStream\",\n\t\t\tHandler:       _Main_BidStream_Handler,\n\t\t\tServerStreams: true,\n\t\t\tClientStreams: true,\n\t\t},\n\t},\n\tMetadata: \"pkg/runner/grpc_test/test.proto\",\n}\n```\nMain\\_ServiceDesc is the grpc.ServiceDesc for Main service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)\n\n## Functions\n\n```go\nfunc RegisterMainServer(s grpc.ServiceRegistrar, srv MainServer)\n```\n\n## Types\n\n```go\ntype AdvancedType struct {\n\tInt32Array    []int32                `protobuf:\"varint,1,rep,packed,name=Int32Array,proto3\" json:\"Int32Array,omitempty\"`\n\tInt64Array    []int64                `protobuf:\"varint,2,rep,packed,name=Int64Array,proto3\" json:\"Int64Array,omitempty\"`\n\tUint32Array   []uint32               `protobuf:\"varint,3,rep,packed,name=Uint32Array,proto3\" json:\"Uint32Array,omitempty\"`\n\tUint64Array   []uint64               `protobuf:\"varint,4,rep,packed,name=Uint64Array,proto3\" json:\"Uint64Array,omitempty\"`\n\tFloat32Array  []float32              `protobuf:\"fixed32,5,rep,packed,name=Float32Array,proto3\" json:\"Float32Array,omitempty\"`\n\tFloat64Array  []float64              `protobuf:\"fixed64,6,rep,packed,name=Float64Array,proto3\" json:\"Float64Array,omitempty\"`\n\tStringArray   []string               `protobuf:\"bytes,7,rep,name=StringArray,proto3\" json:\"StringArray,omitempty\"`\n\tBoolArray     []bool                 `protobuf:\"varint,8,rep,packed,name=BoolArray,proto3\" json:\"BoolArray,omitempty\"`\n\tHelloReplyMap map[string]*HelloReply `protobuf:\"bytes,9,rep,name=HelloReplyMap,proto3\" json:\"HelloReplyMap,omitempty\" protobuf_key:\"bytes,1,opt,name=key,proto3\" protobuf_val:\"bytes,2,opt,name=value,proto3\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*AdvancedType) Descriptor() ([]byte, []int)\n```\nDeprecated: Use AdvancedType.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *AdvancedType) GetBoolArray() []bool\n```\n\n```go\nfunc (x *AdvancedType) GetFloat32Array() []float32\n```\n\n```go\nfunc (x *AdvancedType) GetFloat64Array() []float64\n```\n\n```go\nfunc (x *AdvancedType) GetHelloReplyMap() map[string]*HelloReply\n```\n\n```go\nfunc (x *AdvancedType) GetInt32Array() []int32\n```\n\n```go\nfunc (x *AdvancedType) GetInt64Array() []int64\n```\n\n```go\nfunc (x *AdvancedType) GetStringArray() []string\n```\n\n```go\nfunc (x *AdvancedType) GetUint32Array() []uint32\n```\n\n```go\nfunc (x *AdvancedType) GetUint64Array() []uint64\n```\n\n```go\nfunc (*AdvancedType) ProtoMessage()\n```\n\n```go\nfunc (x *AdvancedType) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *AdvancedType) Reset()\n```\n\n```go\nfunc (x *AdvancedType) String() string\n```\n\n```go\ntype BasicType struct {\n\tInt32   int32   `protobuf:\"varint,1,opt,name=Int32,proto3\" json:\"Int32,omitempty\"`\n\tInt64   int64   `protobuf:\"varint,2,opt,name=Int64,proto3\" json:\"Int64,omitempty\"`\n\tUint32  uint32  `protobuf:\"varint,3,opt,name=Uint32,proto3\" json:\"Uint32,omitempty\"`\n\tUint64  uint64  `protobuf:\"varint,4,opt,name=Uint64,proto3\" json:\"Uint64,omitempty\"`\n\tFloat32 float32 `protobuf:\"fixed32,5,opt,name=Float32,proto3\" json:\"Float32,omitempty\"`\n\tFloat64 float64 `protobuf:\"fixed64,6,opt,name=Float64,proto3\" json:\"Float64,omitempty\"`\n\tString_ string  `protobuf:\"bytes,7,opt,name=String,proto3\" json:\"String,omitempty\"`\n\tBool    bool    `protobuf:\"varint,8,opt,name=Bool,proto3\" json:\"Bool,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*BasicType) Descriptor() ([]byte, []int)\n```\nDeprecated: Use BasicType.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *BasicType) GetBool() bool\n```\n\n```go\nfunc (x *BasicType) GetFloat32() float32\n```\n\n```go\nfunc (x *BasicType) GetFloat64() float64\n```\n\n```go\nfunc (x *BasicType) GetInt32() int32\n```\n\n```go\nfunc (x *BasicType) GetInt64() int64\n```\n\n```go\nfunc (x *BasicType) GetString_() string\n```\n\n```go\nfunc (x *BasicType) GetUint32() uint32\n```\n\n```go\nfunc (x *BasicType) GetUint64() uint64\n```\n\n```go\nfunc (*BasicType) ProtoMessage()\n```\n\n```go\nfunc (x *BasicType) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *BasicType) Reset()\n```\n\n```go\nfunc (x *BasicType) String() string\n```\n\n```go\ntype Empty struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*Empty) Descriptor() ([]byte, []int)\n```\nDeprecated: Use Empty.ProtoReflect.Descriptor instead.\n\n```go\nfunc (*Empty) ProtoMessage()\n```\n\n```go\nfunc (x *Empty) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *Empty) Reset()\n```\n\n```go\nfunc (x *Empty) String() string\n```\n\n```go\ntype HelloReply struct {\n\tMessage string `protobuf:\"bytes,1,opt,name=message,proto3\" json:\"message,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*HelloReply) Descriptor() ([]byte, []int)\n```\nDeprecated: Use HelloReply.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *HelloReply) GetMessage() string\n```\n\n```go\nfunc (*HelloReply) ProtoMessage()\n```\n\n```go\nfunc (x *HelloReply) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *HelloReply) Reset()\n```\n\n```go\nfunc (x *HelloReply) String() string\n```\n\n```go\ntype MainClient interface {\n\tUnary(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*HelloReply, error)\n\tClientStream(ctx context.Context, opts ...grpc.CallOption) (Main_ClientStreamClient, error)\n\tServerStream(ctx context.Context, in *StreamMessageRepeated, opts ...grpc.CallOption) (Main_ServerStreamClient, error)\n\tBidStream(ctx context.Context, opts ...grpc.CallOption) (Main_BidStreamClient, error)\n\tTestBasicType(ctx context.Context, in *BasicType, opts ...grpc.CallOption) (*BasicType, error)\n\tTestAdvancedType(ctx context.Context, in *AdvancedType, opts ...grpc.CallOption) (*AdvancedType, error)\n}\n```\nMainClient is the client API for Main service.\n\nFor semantics around ctx use and closing/ending streaming RPCs, please refer to [https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream](https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream).\n\n```go\nfunc NewMainClient(cc grpc.ClientConnInterface) MainClient\n```\n\n```go\ntype MainServer interface {\n\tUnary(context.Context, *Empty) (*HelloReply, error)\n\tClientStream(Main_ClientStreamServer) error\n\tServerStream(*StreamMessageRepeated, Main_ServerStreamServer) error\n\tBidStream(Main_BidStreamServer) error\n\tTestBasicType(context.Context, *BasicType) (*BasicType, error)\n\tTestAdvancedType(context.Context, *AdvancedType) (*AdvancedType, error)\n\t// contains filtered or unexported methods\n}\n```\nMainServer is the server API for Main service. All implementations must embed UnimplementedMainServer for forward compatibility\n\n```go\ntype Main_BidStreamClient interface {\n\tSend(*StreamMessage) error\n\tRecv() (*StreamMessage, error)\n\tgrpc.ClientStream\n}\n```\n\n```go\ntype Main_BidStreamServer interface {\n\tSend(*StreamMessage) error\n\tRecv() (*StreamMessage, error)\n\tgrpc.ServerStream\n}\n```\n\n```go\ntype Main_ClientStreamClient interface {\n\tSend(*StreamMessage) error\n\tCloseAndRecv() (*StreamMessageRepeated, error)\n\tgrpc.ClientStream\n}\n```\n\n```go\ntype Main_ClientStreamServer interface {\n\tSendAndClose(*StreamMessageRepeated) error\n\tRecv() (*StreamMessage, error)\n\tgrpc.ServerStream\n}\n```\n\n```go\ntype Main_ServerStreamClient interface {\n\tRecv() (*StreamMessage, error)\n\tgrpc.ClientStream\n}\n```\n\n```go\ntype Main_ServerStreamServer interface {\n\tSend(*StreamMessage) error\n\tgrpc.ServerStream\n}\n```\n\n```go\ntype StreamMessage struct {\n\tMsgID     int32 `protobuf:\"varint,1,opt,name=MsgID,proto3\" json:\"MsgID,omitempty\"`\n\tExpectLen int32 `protobuf:\"varint,2,opt,name=ExpectLen,proto3\" json:\"ExpectLen,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*StreamMessage) Descriptor() ([]byte, []int)\n```\nDeprecated: Use StreamMessage.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *StreamMessage) GetExpectLen() int32\n```\n\n```go\nfunc (x *StreamMessage) GetMsgID() int32\n```\n\n```go\nfunc (*StreamMessage) ProtoMessage()\n```\n\n```go\nfunc (x *StreamMessage) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *StreamMessage) Reset()\n```\n\n```go\nfunc (x *StreamMessage) String() string\n```\n\n```go\ntype StreamMessageRepeated struct {\n\tData []*StreamMessage `protobuf:\"bytes,1,rep,name=data,proto3\" json:\"data,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*StreamMessageRepeated) Descriptor() ([]byte, []int)\n```\nDeprecated: Use StreamMessageRepeated.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *StreamMessageRepeated) GetData() []*StreamMessage\n```\n\n```go\nfunc (*StreamMessageRepeated) ProtoMessage()\n```\n\n```go\nfunc (x *StreamMessageRepeated) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *StreamMessageRepeated) Reset()\n```\n\n```go\nfunc (x *StreamMessageRepeated) String() string\n```\n\n```go\ntype TestServer struct {\n\tUnimplementedMainServer\n}\n```\n\n```go\nfunc (s *TestServer) BidStream(stream Main_BidStreamServer) error\n```\n\n```go\nfunc (s *TestServer) ClientStream(stream Main_ClientStreamServer) error\n```\n\n```go\nfunc (s *TestServer) ServerStream(msg *StreamMessageRepeated, stream Main_ServerStreamServer) error\n```\n\n```go\nfunc (s *TestServer) TestAdvancedType(ctx context.Context, advancedType *AdvancedType) (*AdvancedType, error)\n```\n\n```go\nfunc (s *TestServer) TestBasicType(ctx context.Context, baiscType *BasicType) (*BasicType, error)\n```\n\n```go\nfunc (s *TestServer) Unary(ctx context.Context, _ *Empty) (*HelloReply, error)\n```\n\n```go\ntype UnimplementedMainServer struct {\n}\n```\nUnimplementedMainServer must be embedded to have forward compatible implementations.\n\n```go\nfunc (UnimplementedMainServer) BidStream(Main_BidStreamServer) error\n```\n\n```go\nfunc (UnimplementedMainServer) ClientStream(Main_ClientStreamServer) error\n```\n\n```go\nfunc (UnimplementedMainServer) ServerStream(*StreamMessageRepeated, Main_ServerStreamServer) error\n```\n\n```go\nfunc (UnimplementedMainServer) TestAdvancedType(context.Context, *AdvancedType) (*AdvancedType, error)\n```\n\n```go\nfunc (UnimplementedMainServer) TestBasicType(context.Context, *BasicType) (*BasicType, error)\n```\n\n```go\nfunc (UnimplementedMainServer) Unary(context.Context, *Empty) (*HelloReply, error)\n```\n\n```go\ntype UnsafeMainServer interface {\n\t// contains filtered or unexported methods\n}\n```\nUnsafeMainServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MainServer will result in compilation errors.\n\n","path":"github.com/linuxsuren/api-testing/pkg/runner/grpc_test","name":"grpc_test","synopsis":"","isRedistributable":true}
