Documentation
¶
Index ¶
- type APIRegisterHub
- func (apiRegisterhub *APIRegisterHub) AddNewAddress(ctx context.Context, newAddrs []address.Address) error
- func (apiRegisterhub *APIRegisterHub) RemoveAddress(ctx context.Context, newAddrs []address.Address) error
- func (apiRegisterhub *APIRegisterHub) SupportNewAccount(ctx context.Context, supportAccount string) error
- type IAPIRegisterHub
- type IWalletEvent
- type IWalletProcess
- type ShimWallet
- type WalletEvent
- type WalletEventAPI
- type WalletRegisterClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIRegisterHub ¶
type APIRegisterHub struct {
// contains filtered or unexported fields
}
func NewAPIRegisterHub ¶
func NewAPIRegisterHub(lc fx.Lifecycle, process ShimWallet, bus EventBus.Bus, cfg *config.APIRegisterHubConfig) (*APIRegisterHub, error)
func (*APIRegisterHub) AddNewAddress ¶
func (apiRegisterhub *APIRegisterHub) AddNewAddress(ctx context.Context, newAddrs []address.Address) error
func (*APIRegisterHub) RemoveAddress ¶ added in v1.2.1
func (apiRegisterhub *APIRegisterHub) RemoveAddress(ctx context.Context, newAddrs []address.Address) error
func (*APIRegisterHub) SupportNewAccount ¶
func (apiRegisterhub *APIRegisterHub) SupportNewAccount(ctx context.Context, supportAccount string) error
type IAPIRegisterHub ¶
type IWalletEvent ¶ added in v1.4.0
type IWalletEvent = api.IWalletEvent
func NewWalletEventAPI ¶
func NewWalletEventAPI(fsr filemgr.Repo, cfg *config.APIRegisterHubConfig, apiRegisterHub IAPIRegisterHub) IWalletEvent
type IWalletProcess ¶
type ShimWallet ¶ added in v1.2.1
type WalletEvent ¶
type WalletEvent struct {
// contains filtered or unexported fields
}
func NewWalletEvent ¶
func NewWalletEvent(ctx context.Context, process IWalletProcess, client *WalletRegisterClient, log logging.StandardLogger, cfg *config.APIRegisterHubConfig) *WalletEvent
func (*WalletEvent) AddNewAddress ¶
func (e *WalletEvent) AddNewAddress(ctx context.Context, newAddrs []address.Address) error
func (*WalletEvent) RemoveAddress ¶ added in v1.2.1
func (e *WalletEvent) RemoveAddress(ctx context.Context, newAddrs []address.Address) error
func (*WalletEvent) SupportAccount ¶
func (e *WalletEvent) SupportAccount(ctx context.Context, supportAccount string) error
type WalletEventAPI ¶
type WalletEventAPI struct {
// contains filtered or unexported fields
}
func (*WalletEventAPI) AddNewAddress ¶
func (walletEventAPI *WalletEventAPI) AddNewAddress(ctx context.Context, newAddrs []address.Address) error
func (*WalletEventAPI) AddSupportAccount ¶
func (walletEventAPI *WalletEventAPI) AddSupportAccount(ctx context.Context, supportAccount string) error
type WalletRegisterClient ¶
type WalletRegisterClient struct { ResponseWalletEvent func(ctx context.Context, resp *types.ResponseEvent) error ListenWalletEvent func(ctx context.Context, policy *types.WalletRegisterPolicy) (chan *types.RequestEvent, error) SupportNewAccount func(ctx context.Context, channelId types2.UUID, account string) error AddNewAddress func(ctx context.Context, channelId types2.UUID, newAddrs []address.Address) error RemoveAddress func(ctx context.Context, channelId types2.UUID, newAddrs []address.Address) error }
func NewWalletRegisterClient ¶
func NewWalletRegisterClient(ctx context.Context, url, token string) (*WalletRegisterClient, jsonrpc.ClientCloser, error)
Click to show internal directories.
Click to hide internal directories.