__

package
v0.0.0-...-0b4a3bf Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_increment_increment_proto protoreflect.FileDescriptor
View Source
var Increment_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "increment",
	HandlerType: (*IncrementServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Increment",
			Handler:    _Increment_Increment_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "increment/increment.proto",
}

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

Functions

func RegisterIncrementServer

func RegisterIncrementServer(s grpc.ServiceRegistrar, srv IncrementServer)

Types

type IncrementClient

type IncrementClient interface {
	Increment(ctx context.Context, in *IncrementRequest, opts ...grpc.CallOption) (*IncrementReply, error)
}

IncrementClient is the client API for Increment 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 NewIncrementClient

func NewIncrementClient(cc grpc.ClientConnInterface) IncrementClient

type IncrementReply

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

func (*IncrementReply) Descriptor deprecated

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

Deprecated: Use IncrementReply.ProtoReflect.Descriptor instead.

func (*IncrementReply) GetMessage

func (x *IncrementReply) GetMessage() string

func (*IncrementReply) ProtoMessage

func (*IncrementReply) ProtoMessage()

func (*IncrementReply) ProtoReflect

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

func (*IncrementReply) Reset

func (x *IncrementReply) Reset()

func (*IncrementReply) String

func (x *IncrementReply) String() string

type IncrementRequest

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

func (*IncrementRequest) Descriptor deprecated

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

Deprecated: Use IncrementRequest.ProtoReflect.Descriptor instead.

func (*IncrementRequest) GetValue

func (x *IncrementRequest) GetValue() string

func (*IncrementRequest) ProtoMessage

func (*IncrementRequest) ProtoMessage()

func (*IncrementRequest) ProtoReflect

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

func (*IncrementRequest) Reset

func (x *IncrementRequest) Reset()

func (*IncrementRequest) String

func (x *IncrementRequest) String() string

type IncrementServer

type IncrementServer interface {
	Increment(context.Context, *IncrementRequest) (*IncrementReply, error)
	// contains filtered or unexported methods
}

IncrementServer is the server API for Increment service. All implementations must embed UnimplementedIncrementServer for forward compatibility

type UnimplementedIncrementServer

type UnimplementedIncrementServer struct {
}

UnimplementedIncrementServer must be embedded to have forward compatible implementations.

func (UnimplementedIncrementServer) Increment

type UnsafeIncrementServer

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

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

Jump to

Keyboard shortcuts

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