Documentation ¶
Index ¶
- Constants
- type RpcServer
- func (s *RpcServer) Start(ctx context.Context) error
- func (s *RpcServer) Stop(ctx context.Context) error
- func (s *RpcServer) Stopped() bool
- func (s *RpcServer) SubmitWithdrawInfo(ctx context.Context, in *wallet.WithdrawReq) (*wallet.WithdrawRep, error)
- func (s *RpcServer) VerifyAddress(ctx context.Context, in *wallet.RiskVerifyAddressReq) (*wallet.RiskVerifyAddressRep, error)
- func (s *RpcServer) VerifyRiskDOrWNotify(ctx context.Context, in *wallet.RiskDOrWNotifyVerifyReq) (*wallet.RiskDOrWNotifyVerifyRep, error)
- func (s *RpcServer) VerifyWithdrawSign(ctx context.Context, in *wallet.RiskWithdrawVerifyReq) (*wallet.RiskWithdrawVerifyRep, error)
- type RpcServerConfig
Constants ¶
View Source
const MaxRecvMessageSize = 1024 * 1024 * 300
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RpcServer ¶
type RpcServer struct { *RpcServerConfig wallet.UnimplementedWalletServiceServer // contains filtered or unexported fields }
func NewRpcServer ¶
func NewRpcServer(db *database.DB, config *RpcServerConfig) (*RpcServer, error)
func (*RpcServer) SubmitWithdrawInfo ¶
func (s *RpcServer) SubmitWithdrawInfo(ctx context.Context, in *wallet.WithdrawReq) (*wallet.WithdrawRep, error)
func (*RpcServer) VerifyAddress ¶
func (s *RpcServer) VerifyAddress(ctx context.Context, in *wallet.RiskVerifyAddressReq) (*wallet.RiskVerifyAddressRep, error)
func (*RpcServer) VerifyRiskDOrWNotify ¶
func (s *RpcServer) VerifyRiskDOrWNotify(ctx context.Context, in *wallet.RiskDOrWNotifyVerifyReq) (*wallet.RiskDOrWNotifyVerifyRep, error)
func (*RpcServer) VerifyWithdrawSign ¶
func (s *RpcServer) VerifyWithdrawSign(ctx context.Context, in *wallet.RiskWithdrawVerifyReq) (*wallet.RiskWithdrawVerifyRep, error)
type RpcServerConfig ¶
Click to show internal directories.
Click to hide internal directories.