stub_subfolders

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 (
	Gripmock_SayHello_FullMethodName = "/stub_subfolders.Gripmock/SayHello"
)

Variables

View Source
var File_stub_subfolders_proto protoreflect.FileDescriptor
View Source
var Gripmock_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "stub_subfolders.Gripmock",
	HandlerType: (*GripmockServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SayHello",
			Handler:    _Gripmock_SayHello_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "stub-subfolders.proto",
}

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

Functions

func RegisterGripmockServer

func RegisterGripmockServer(s grpc.ServiceRegistrar, srv GripmockServer)

Types

type GripmockClient

type GripmockClient interface {
	// simple unary method
	SayHello(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Reply, error)
}

GripmockClient is the client API for Gripmock 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 NewGripmockClient

func NewGripmockClient(cc grpc.ClientConnInterface) GripmockClient

type GripmockServer

type GripmockServer interface {
	// simple unary method
	SayHello(context.Context, *Request) (*Reply, error)
	// contains filtered or unexported methods
}

GripmockServer is the server API for Gripmock service. All implementations must embed UnimplementedGripmockServer for forward compatibility

type Reply

type Reply 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 (*Reply) Descriptor deprecated

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

Deprecated: Use Reply.ProtoReflect.Descriptor instead.

func (*Reply) GetMessage

func (x *Reply) GetMessage() string

func (*Reply) GetReturnCode

func (x *Reply) GetReturnCode() int32

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) ProtoReflect

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

func (*Reply) Reset

func (x *Reply) Reset()

func (*Reply) String

func (x *Reply) String() string

type Request

type Request 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 (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetName

func (x *Request) GetName() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type UnimplementedGripmockServer

type UnimplementedGripmockServer struct {
}

UnimplementedGripmockServer must be embedded to have forward compatible implementations.

func (UnimplementedGripmockServer) SayHello

type UnsafeGripmockServer

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

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

Jump to

Keyboard shortcuts

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