pb

package
v0.0.0-...-7264f90 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Test_Test_FullMethodName  = "/pb.Test/Test"
	Test_TestB_FullMethodName = "/pb.Test/TestB"
)
View Source
const (
	TestNil_TestNil_FullMethodName = "/pb.TestNil/TestNil"
)

Variables

View Source
var TestNil_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.TestNil",
	HandlerType: (*TestNilServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "TestNil",
			Handler:    _TestNil_TestNil_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "test.proto",
}

TestNil_ServiceDesc is the grpc.ServiceDesc for TestNil service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Test_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.Test",
	HandlerType: (*TestServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Test",
			Handler:    _Test_Test_Handler,
		},
		{
			MethodName: "TestB",
			Handler:    _Test_TestB_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "test.proto",
}

Test_ServiceDesc is the grpc.ServiceDesc for Test service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterTestNilServer

func RegisterTestNilServer(s grpc.ServiceRegistrar, srv TestNilServer)

func RegisterTestServer

func RegisterTestServer(s grpc.ServiceRegistrar, srv TestServer)

Types

type TestClient

type TestClient interface {
	Test(ctx context.Context, in *TestRequest, opts ...grpc.CallOption) (*TestResponse, error)
	TestB(ctx context.Context, in *TestRequest, opts ...grpc.CallOption) (*TestResponse, error)
}

TestClient is the client API for Test service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewTestClient

func NewTestClient(cc grpc.ClientConnInterface) TestClient

type TestNilClient

type TestNilClient interface {
	TestNil(ctx context.Context, in *TestNilRequest, opts ...grpc.CallOption) (*TestResponse, error)
}

TestNilClient is the client API for TestNil service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewTestNilClient

func NewTestNilClient(cc grpc.ClientConnInterface) TestNilClient

type TestNilRequest

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

func (*TestNilRequest) Descriptor deprecated

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

Deprecated: Use TestNilRequest.ProtoReflect.Descriptor instead.

func (*TestNilRequest) GetA

func (x *TestNilRequest) GetA() []byte

func (*TestNilRequest) ProtoMessage

func (*TestNilRequest) ProtoMessage()

func (*TestNilRequest) ProtoReflect

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

func (*TestNilRequest) Reset

func (x *TestNilRequest) Reset()

func (*TestNilRequest) String

func (x *TestNilRequest) String() string

type TestNilServer

type TestNilServer interface {
	TestNil(context.Context, *TestNilRequest) (*TestResponse, error)
	// contains filtered or unexported methods
}

TestNilServer is the server API for TestNil service. All implementations must embed UnimplementedTestNilServer for forward compatibility

type TestRequest

type TestRequest struct {
	A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
	B int64  `protobuf:"varint,2,opt,name=b,proto3" json:"b,omitempty"`
	// contains filtered or unexported fields
}

func (*TestRequest) Descriptor deprecated

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

Deprecated: Use TestRequest.ProtoReflect.Descriptor instead.

func (*TestRequest) GetA

func (x *TestRequest) GetA() string

func (*TestRequest) GetB

func (x *TestRequest) GetB() int64

func (*TestRequest) ProtoMessage

func (*TestRequest) ProtoMessage()

func (*TestRequest) ProtoReflect

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

func (*TestRequest) Reset

func (x *TestRequest) Reset()

func (*TestRequest) String

func (x *TestRequest) String() string

type TestResponse

type TestResponse struct {
	V string `protobuf:"bytes,1,opt,name=v,proto3" json:"v,omitempty"`
	// contains filtered or unexported fields
}

func (*TestResponse) Descriptor deprecated

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

Deprecated: Use TestResponse.ProtoReflect.Descriptor instead.

func (*TestResponse) GetV

func (x *TestResponse) GetV() string

func (*TestResponse) ProtoMessage

func (*TestResponse) ProtoMessage()

func (*TestResponse) ProtoReflect

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

func (*TestResponse) Reset

func (x *TestResponse) Reset()

func (*TestResponse) String

func (x *TestResponse) String() string

type TestServer

type TestServer interface {
	Test(context.Context, *TestRequest) (*TestResponse, error)
	TestB(context.Context, *TestRequest) (*TestResponse, error)
	// contains filtered or unexported methods
}

TestServer is the server API for Test service. All implementations must embed UnimplementedTestServer for forward compatibility

type UnimplementedTestNilServer

type UnimplementedTestNilServer struct {
}

UnimplementedTestNilServer must be embedded to have forward compatible implementations.

func (UnimplementedTestNilServer) TestNil

type UnimplementedTestServer

type UnimplementedTestServer struct {
}

UnimplementedTestServer must be embedded to have forward compatible implementations.

func (UnimplementedTestServer) Test

func (UnimplementedTestServer) TestB

type UnsafeTestNilServer

type UnsafeTestNilServer interface {
	// contains filtered or unexported methods
}

UnsafeTestNilServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestNilServer will result in compilation errors.

type UnsafeTestServer

type UnsafeTestServer interface {
	// contains filtered or unexported methods
}

UnsafeTestServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestServer will result in compilation errors.

Jump to

Keyboard shortcuts

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