api_v1

package
v0.0.0-...-a602e0b Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IncrementService_Increment_FullMethodName = "/api.v1.IncrementService/Increment"
)

Variables

View Source
var File_api_v1_service_proto protoreflect.FileDescriptor
View Source
var IncrementService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1.IncrementService",
	HandlerType: (*IncrementServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Increment",
			Handler:    _IncrementService_Increment_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/service.proto",
}

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

Functions

func RegisterIncrementServiceServer

func RegisterIncrementServiceServer(s grpc.ServiceRegistrar, srv IncrementServiceServer)

Types

type IncrementRequest

type IncrementRequest struct {
	// contains filtered or unexported fields
}

func (*IncrementRequest) Descriptor deprecated

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

Deprecated: Use IncrementRequest.ProtoReflect.Descriptor instead.

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 IncrementResponse

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

func (*IncrementResponse) Descriptor deprecated

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

Deprecated: Use IncrementResponse.ProtoReflect.Descriptor instead.

func (*IncrementResponse) GetValue

func (x *IncrementResponse) GetValue() uint64

func (*IncrementResponse) ProtoMessage

func (*IncrementResponse) ProtoMessage()

func (*IncrementResponse) ProtoReflect

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

func (*IncrementResponse) Reset

func (x *IncrementResponse) Reset()

func (*IncrementResponse) String

func (x *IncrementResponse) String() string

type IncrementServiceClient

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

IncrementServiceClient is the client API for IncrementService service.

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

type IncrementServiceServer

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

IncrementServiceServer is the server API for IncrementService service. All implementations must embed UnimplementedIncrementServiceServer for forward compatibility.

type UnimplementedIncrementServiceServer

type UnimplementedIncrementServiceServer struct{}

UnimplementedIncrementServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedIncrementServiceServer) Increment

type UnsafeIncrementServiceServer

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳