Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterGearGrpcServiceServer(s grpc.ServiceRegistrar, srv GearGrpcServiceServer)
- type EncodedVoucherIssue
- func (*EncodedVoucherIssue) Descriptor() ([]byte, []int)deprecated
- func (x *EncodedVoucherIssue) GetEncodedCall() string
- func (*EncodedVoucherIssue) ProtoMessage()
- func (x *EncodedVoucherIssue) ProtoReflect() protoreflect.Message
- func (x *EncodedVoucherIssue) Reset()
- func (x *EncodedVoucherIssue) String() string
- type GearGrpcServiceClient
- type GearGrpcServiceServer
- type UnimplementedGearGrpcServiceServer
- type UnsafeGearGrpcServiceServer
- type VoucherParams
- func (*VoucherParams) Descriptor() ([]byte, []int)deprecated
- func (x *VoucherParams) GetBalance() string
- func (x *VoucherParams) GetCodeUploading() bool
- func (x *VoucherParams) GetDuration() int32
- func (x *VoucherParams) GetSpender() string
- func (*VoucherParams) ProtoMessage()
- func (x *VoucherParams) ProtoReflect() protoreflect.Message
- func (x *VoucherParams) Reset()
- func (x *VoucherParams) String() string
Constants ¶
const (
GearGrpcService_CallVoucherIssue_FullMethodName = "/gear_grpc.GearGrpcService/CallVoucherIssue"
)
Variables ¶
var File_gear_grpc_proto protoreflect.FileDescriptor
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.
func NewGearGrpcServiceClient ¶
func NewGearGrpcServiceClient(cc grpc.ClientConnInterface) GearGrpcServiceClient
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 ¶
func (UnimplementedGearGrpcServiceServer) CallVoucherIssue(context.Context, *VoucherParams) (*EncodedVoucherIssue, error)
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