Documentation ¶
Index ¶
- Variables
- func RegisterGoWalletManageSvrServer(s grpc.ServiceRegistrar, srv GoWalletManageSvrServer)
- type CreateWalletReq
- type CreateWalletRsp
- type GoWalletManageSvrClient
- type GoWalletManageSvrServer
- type ImportWalletReq
- type ImportWalletRsp
- type UnimplementedGoWalletManageSvrServer
- type UnsafeGoWalletManageSvrServer
Constants ¶
This section is empty.
Variables ¶
var File_go_wallet_manage_svr_proto protoreflect.FileDescriptor
var GoWalletManageSvr_ServiceDesc = grpc.ServiceDesc{ ServiceName: "go_wallet_manage_svr.go_wallet_manage_svr", HandlerType: (*GoWalletManageSvrServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateWallet", Handler: _GoWalletManageSvr_CreateWallet_Handler, }, { MethodName: "ImportWallet", Handler: _GoWalletManageSvr_ImportWallet_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "go_wallet_manage_svr.proto", }
GoWalletManageSvr_ServiceDesc is the grpc.ServiceDesc for GoWalletManageSvr service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGoWalletManageSvrServer ¶
func RegisterGoWalletManageSvrServer(s grpc.ServiceRegistrar, srv GoWalletManageSvrServer)
Types ¶
type CreateWalletReq ¶
type CreateWalletReq struct {
// contains filtered or unexported fields
}
func (*CreateWalletReq) Descriptor
deprecated
func (*CreateWalletReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateWalletReq.ProtoReflect.Descriptor instead.
func (*CreateWalletReq) ProtoMessage ¶
func (*CreateWalletReq) ProtoMessage()
func (*CreateWalletReq) ProtoReflect ¶
func (x *CreateWalletReq) ProtoReflect() protoreflect.Message
func (*CreateWalletReq) Reset ¶
func (x *CreateWalletReq) Reset()
func (*CreateWalletReq) String ¶
func (x *CreateWalletReq) String() string
type CreateWalletRsp ¶
type CreateWalletRsp struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // 钱包地址 // contains filtered or unexported fields }
func (*CreateWalletRsp) Descriptor
deprecated
func (*CreateWalletRsp) Descriptor() ([]byte, []int)
Deprecated: Use CreateWalletRsp.ProtoReflect.Descriptor instead.
func (*CreateWalletRsp) GetAddress ¶
func (x *CreateWalletRsp) GetAddress() string
func (*CreateWalletRsp) ProtoMessage ¶
func (*CreateWalletRsp) ProtoMessage()
func (*CreateWalletRsp) ProtoReflect ¶
func (x *CreateWalletRsp) ProtoReflect() protoreflect.Message
func (*CreateWalletRsp) Reset ¶
func (x *CreateWalletRsp) Reset()
func (*CreateWalletRsp) String ¶
func (x *CreateWalletRsp) String() string
type GoWalletManageSvrClient ¶
type GoWalletManageSvrClient interface { // 创建钱包 CreateWallet(ctx context.Context, in *CreateWalletReq, opts ...grpc.CallOption) (*CreateWalletRsp, error) // 导入钱包 ImportWallet(ctx context.Context, in *ImportWalletReq, opts ...grpc.CallOption) (*ImportWalletRsp, error) }
GoWalletManageSvrClient is the client API for GoWalletManageSvr 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 NewGoWalletManageSvrClient ¶
func NewGoWalletManageSvrClient(cc grpc.ClientConnInterface) GoWalletManageSvrClient
type GoWalletManageSvrServer ¶
type GoWalletManageSvrServer interface { // 创建钱包 CreateWallet(context.Context, *CreateWalletReq) (*CreateWalletRsp, error) // 导入钱包 ImportWallet(context.Context, *ImportWalletReq) (*ImportWalletRsp, error) }
GoWalletManageSvrServer is the server API for GoWalletManageSvr service. All implementations should embed UnimplementedGoWalletManageSvrServer for forward compatibility
type ImportWalletReq ¶
type ImportWalletReq struct { PrivateKey string `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"` // 私钥 // contains filtered or unexported fields }
func (*ImportWalletReq) Descriptor
deprecated
func (*ImportWalletReq) Descriptor() ([]byte, []int)
Deprecated: Use ImportWalletReq.ProtoReflect.Descriptor instead.
func (*ImportWalletReq) GetPrivateKey ¶
func (x *ImportWalletReq) GetPrivateKey() string
func (*ImportWalletReq) ProtoMessage ¶
func (*ImportWalletReq) ProtoMessage()
func (*ImportWalletReq) ProtoReflect ¶
func (x *ImportWalletReq) ProtoReflect() protoreflect.Message
func (*ImportWalletReq) Reset ¶
func (x *ImportWalletReq) Reset()
func (*ImportWalletReq) String ¶
func (x *ImportWalletReq) String() string
type ImportWalletRsp ¶
type ImportWalletRsp struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // 钱包地址 // contains filtered or unexported fields }
func (*ImportWalletRsp) Descriptor
deprecated
func (*ImportWalletRsp) Descriptor() ([]byte, []int)
Deprecated: Use ImportWalletRsp.ProtoReflect.Descriptor instead.
func (*ImportWalletRsp) GetAddress ¶
func (x *ImportWalletRsp) GetAddress() string
func (*ImportWalletRsp) ProtoMessage ¶
func (*ImportWalletRsp) ProtoMessage()
func (*ImportWalletRsp) ProtoReflect ¶
func (x *ImportWalletRsp) ProtoReflect() protoreflect.Message
func (*ImportWalletRsp) Reset ¶
func (x *ImportWalletRsp) Reset()
func (*ImportWalletRsp) String ¶
func (x *ImportWalletRsp) String() string
type UnimplementedGoWalletManageSvrServer ¶
type UnimplementedGoWalletManageSvrServer struct { }
UnimplementedGoWalletManageSvrServer should be embedded to have forward compatible implementations.
func (UnimplementedGoWalletManageSvrServer) CreateWallet ¶
func (UnimplementedGoWalletManageSvrServer) CreateWallet(context.Context, *CreateWalletReq) (*CreateWalletRsp, error)
func (UnimplementedGoWalletManageSvrServer) ImportWallet ¶
func (UnimplementedGoWalletManageSvrServer) ImportWallet(context.Context, *ImportWalletReq) (*ImportWalletRsp, error)
type UnsafeGoWalletManageSvrServer ¶
type UnsafeGoWalletManageSvrServer interface {
// contains filtered or unexported methods
}
UnsafeGoWalletManageSvrServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GoWalletManageSvrServer will result in compilation errors.