gear_grpc

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GearGrpcService_CallVoucherIssue_FullMethodName = "/gear_grpc.GearGrpcService/CallVoucherIssue"
)

Variables

View Source
var File_gear_grpc_proto protoreflect.FileDescriptor
View Source
var GearGrpcService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gear_grpc.GearGrpcService",
	HandlerType: (*GearGrpcServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CallVoucherIssue",
			Handler:    _GearGrpcService_CallVoucherIssue_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gear-grpc.proto",
}

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

Functions

func RegisterGearGrpcServiceServer

func RegisterGearGrpcServiceServer(s grpc.ServiceRegistrar, srv GearGrpcServiceServer)

Types

type EncodedVoucherIssue

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

func (*EncodedVoucherIssue) Descriptor deprecated

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

Deprecated: Use EncodedVoucherIssue.ProtoReflect.Descriptor instead.

func (*EncodedVoucherIssue) GetEncodedCall

func (x *EncodedVoucherIssue) GetEncodedCall() string

func (*EncodedVoucherIssue) ProtoMessage

func (*EncodedVoucherIssue) ProtoMessage()

func (*EncodedVoucherIssue) ProtoReflect

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

func (*EncodedVoucherIssue) Reset

func (x *EncodedVoucherIssue) Reset()

func (*EncodedVoucherIssue) String

func (x *EncodedVoucherIssue) String() string

type GearGrpcServiceClient

type GearGrpcServiceClient interface {
	CallVoucherIssue(ctx context.Context, in *VoucherParams, opts ...grpc.CallOption) (*EncodedVoucherIssue, error)
}

GearGrpcServiceClient is the client API for GearGrpcService 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 GearGrpcServiceServer

type GearGrpcServiceServer interface {
	CallVoucherIssue(context.Context, *VoucherParams) (*EncodedVoucherIssue, error)
	// contains filtered or unexported methods
}

GearGrpcServiceServer is the server API for GearGrpcService service. All implementations must embed UnimplementedGearGrpcServiceServer for forward compatibility.

type UnimplementedGearGrpcServiceServer

type UnimplementedGearGrpcServiceServer struct{}

UnimplementedGearGrpcServiceServer 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 (UnimplementedGearGrpcServiceServer) CallVoucherIssue

type UnsafeGearGrpcServiceServer

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

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

type VoucherParams

type VoucherParams struct {
	Spender       string `protobuf:"bytes,1,opt,name=spender,proto3" json:"spender,omitempty"`
	Balance       string `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
	CodeUploading bool   `protobuf:"varint,3,opt,name=code_uploading,json=codeUploading,proto3" json:"code_uploading,omitempty"`
	Duration      int32  `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

func (*VoucherParams) Descriptor deprecated

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

Deprecated: Use VoucherParams.ProtoReflect.Descriptor instead.

func (*VoucherParams) GetBalance

func (x *VoucherParams) GetBalance() string

func (*VoucherParams) GetCodeUploading

func (x *VoucherParams) GetCodeUploading() bool

func (*VoucherParams) GetDuration

func (x *VoucherParams) GetDuration() int32

func (*VoucherParams) GetSpender

func (x *VoucherParams) GetSpender() string

func (*VoucherParams) ProtoMessage

func (*VoucherParams) ProtoMessage()

func (*VoucherParams) ProtoReflect

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

func (*VoucherParams) Reset

func (x *VoucherParams) Reset()

func (*VoucherParams) String

func (x *VoucherParams) String() string

Jump to

Keyboard shortcuts

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