go_wallet_manage_svr

package module
v0.0.0-...-e6337f3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_go_wallet_manage_svr_proto protoreflect.FileDescriptor
View Source
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.

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) ImportWallet

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.

Jump to

Keyboard shortcuts

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