multi_files

package
v0.0.0-...-c6476e9 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Gripmock1_SayHello_FullMethodName = "/multifiles.Gripmock1/SayHello"
)
View Source
const (
	Gripmock2_SayHello_FullMethodName = "/multifiles.Gripmock2/SayHello"
)

Variables

View Source
var File_file1_proto protoreflect.FileDescriptor
View Source
var File_file2_proto protoreflect.FileDescriptor
View Source
var Gripmock1_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "multifiles.Gripmock1",
	HandlerType: (*Gripmock1Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SayHello",
			Handler:    _Gripmock1_SayHello_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "file1.proto",
}

Gripmock1_ServiceDesc is the grpc.ServiceDesc for Gripmock1 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 Gripmock2_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "multifiles.Gripmock2",
	HandlerType: (*Gripmock2Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SayHello",
			Handler:    _Gripmock2_SayHello_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "file2.proto",
}

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

Functions

func RegisterGripmock1Server

func RegisterGripmock1Server(s grpc.ServiceRegistrar, srv Gripmock1Server)

func RegisterGripmock2Server

func RegisterGripmock2Server(s grpc.ServiceRegistrar, srv Gripmock2Server)

Types

type Gripmock1Client

type Gripmock1Client interface {
	// simple unary method
	SayHello(ctx context.Context, in *Request1, opts ...grpc.CallOption) (*Reply1, error)
}

Gripmock1Client is the client API for Gripmock1 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 NewGripmock1Client

func NewGripmock1Client(cc grpc.ClientConnInterface) Gripmock1Client

type Gripmock1Server

type Gripmock1Server interface {
	// simple unary method
	SayHello(context.Context, *Request1) (*Reply1, error)
	// contains filtered or unexported methods
}

Gripmock1Server is the server API for Gripmock1 service. All implementations must embed UnimplementedGripmock1Server for forward compatibility

type Gripmock2Client

type Gripmock2Client interface {
	// simple unary method
	SayHello(ctx context.Context, in *Request2, opts ...grpc.CallOption) (*Reply2, error)
}

Gripmock2Client is the client API for Gripmock2 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 NewGripmock2Client

func NewGripmock2Client(cc grpc.ClientConnInterface) Gripmock2Client

type Gripmock2Server

type Gripmock2Server interface {
	// simple unary method
	SayHello(context.Context, *Request2) (*Reply2, error)
	// contains filtered or unexported methods
}

Gripmock2Server is the server API for Gripmock2 service. All implementations must embed UnimplementedGripmock2Server for forward compatibility

type Reply1

type Reply1 struct {
	Message    string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	ReturnCode int32  `protobuf:"varint,2,opt,name=return_code,json=returnCode,proto3" json:"return_code,omitempty"`
	// contains filtered or unexported fields
}

The response message containing the greetings

func (*Reply1) Descriptor deprecated

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

Deprecated: Use Reply1.ProtoReflect.Descriptor instead.

func (*Reply1) GetMessage

func (x *Reply1) GetMessage() string

func (*Reply1) GetReturnCode

func (x *Reply1) GetReturnCode() int32

func (*Reply1) ProtoMessage

func (*Reply1) ProtoMessage()

func (*Reply1) ProtoReflect

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

func (*Reply1) Reset

func (x *Reply1) Reset()

func (*Reply1) String

func (x *Reply1) String() string

type Reply2

type Reply2 struct {
	Message    string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	ReturnCode int32  `protobuf:"varint,2,opt,name=return_code,json=returnCode,proto3" json:"return_code,omitempty"`
	// contains filtered or unexported fields
}

The response message containing the greetings

func (*Reply2) Descriptor deprecated

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

Deprecated: Use Reply2.ProtoReflect.Descriptor instead.

func (*Reply2) GetMessage

func (x *Reply2) GetMessage() string

func (*Reply2) GetReturnCode

func (x *Reply2) GetReturnCode() int32

func (*Reply2) ProtoMessage

func (*Reply2) ProtoMessage()

func (*Reply2) ProtoReflect

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

func (*Reply2) Reset

func (x *Reply2) Reset()

func (*Reply2) String

func (x *Reply2) String() string

type Request1

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

The request message containing the user's name.

func (*Request1) Descriptor deprecated

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

Deprecated: Use Request1.ProtoReflect.Descriptor instead.

func (*Request1) GetName

func (x *Request1) GetName() string

func (*Request1) ProtoMessage

func (*Request1) ProtoMessage()

func (*Request1) ProtoReflect

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

func (*Request1) Reset

func (x *Request1) Reset()

func (*Request1) String

func (x *Request1) String() string

type Request2

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

The request message containing the user's name.

func (*Request2) Descriptor deprecated

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

Deprecated: Use Request2.ProtoReflect.Descriptor instead.

func (*Request2) GetName

func (x *Request2) GetName() string

func (*Request2) ProtoMessage

func (*Request2) ProtoMessage()

func (*Request2) ProtoReflect

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

func (*Request2) Reset

func (x *Request2) Reset()

func (*Request2) String

func (x *Request2) String() string

type UnimplementedGripmock1Server

type UnimplementedGripmock1Server struct {
}

UnimplementedGripmock1Server must be embedded to have forward compatible implementations.

func (UnimplementedGripmock1Server) SayHello

type UnimplementedGripmock2Server

type UnimplementedGripmock2Server struct {
}

UnimplementedGripmock2Server must be embedded to have forward compatible implementations.

func (UnimplementedGripmock2Server) SayHello

type UnsafeGripmock1Server

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

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

type UnsafeGripmock2Server

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

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

Jump to

Keyboard shortcuts

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