pb

package
v0.0.0-...-fc74bcf Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_sample_tcc_grpc_pb_tcc_grpc_proto protoreflect.FileDescriptor
View Source
var TCCServiceBusiness1_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "TCCServiceBusiness1",
	HandlerType: (*TCCServiceBusiness1Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Remoting",
			Handler:    _TCCServiceBusiness1_Remoting_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sample/tcc/grpc/pb/tcc_grpc.proto",
}

TCCServiceBusiness1_ServiceDesc is the grpc.ServiceDesc for TCCServiceBusiness1 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 TCCServiceBusiness2_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "TCCServiceBusiness2",
	HandlerType: (*TCCServiceBusiness2Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Remoting",
			Handler:    _TCCServiceBusiness2_Remoting_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sample/tcc/grpc/pb/tcc_grpc.proto",
}

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

Functions

func RegisterTCCServiceBusiness1Server

func RegisterTCCServiceBusiness1Server(s grpc.ServiceRegistrar, srv TCCServiceBusiness1Server)

func RegisterTCCServiceBusiness2Server

func RegisterTCCServiceBusiness2Server(s grpc.ServiceRegistrar, srv TCCServiceBusiness2Server)

Types

type Params

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

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetA

func (x *Params) GetA() string

func (*Params) GetB

func (x *Params) GetB() string

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

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

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type TCCServiceBusiness1Client

type TCCServiceBusiness1Client interface {
	Remoting(ctx context.Context, in *Params, opts ...grpc.CallOption) (*wrapperspb.BoolValue, error)
}

TCCServiceBusiness1Client is the client API for TCCServiceBusiness1 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.

type TCCServiceBusiness1Server

type TCCServiceBusiness1Server interface {
	Remoting(context.Context, *Params) (*wrapperspb.BoolValue, error)
	// contains filtered or unexported methods
}

TCCServiceBusiness1Server is the server API for TCCServiceBusiness1 service. All implementations must embed UnimplementedTCCServiceBusiness1Server for forward compatibility

type TCCServiceBusiness2Client

type TCCServiceBusiness2Client interface {
	Remoting(ctx context.Context, in *Params, opts ...grpc.CallOption) (*anypb.Any, error)
}

TCCServiceBusiness2Client is the client API for TCCServiceBusiness2 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.

type TCCServiceBusiness2Server

type TCCServiceBusiness2Server interface {
	Remoting(context.Context, *Params) (*anypb.Any, error)
	// contains filtered or unexported methods
}

TCCServiceBusiness2Server is the server API for TCCServiceBusiness2 service. All implementations must embed UnimplementedTCCServiceBusiness2Server for forward compatibility

type UnimplementedTCCServiceBusiness1Server

type UnimplementedTCCServiceBusiness1Server struct{}

UnimplementedTCCServiceBusiness1Server must be embedded to have forward compatible implementations.

func (UnimplementedTCCServiceBusiness1Server) Remoting

type UnimplementedTCCServiceBusiness2Server

type UnimplementedTCCServiceBusiness2Server struct{}

UnimplementedTCCServiceBusiness2Server must be embedded to have forward compatible implementations.

func (UnimplementedTCCServiceBusiness2Server) Remoting

type UnsafeTCCServiceBusiness1Server

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

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

type UnsafeTCCServiceBusiness2Server

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

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

Jump to

Keyboard shortcuts

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