Documentation
¶
Index ¶
- Variables
- type API
- type MultiAccountsAPI
- type Service
- type SettingsAPI
- func (api *SettingsAPI) GetConfig(ctx context.Context, typ string) (json.RawMessage, error)
- func (api *SettingsAPI) GetConfigs(ctx context.Context, types []string) (map[string]json.RawMessage, error)
- func (api *SettingsAPI) SaveConfig(ctx context.Context, typ string, conf json.RawMessage) error
- func (api *SettingsAPI) SaveNodeConfig(ctx context.Context, conf *params.NodeConfig) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUpdatingWrongAccount raised if caller tries to update any other account except one used for login. ErrUpdatingWrongAccount = errors.New("failed to updating wrong account. please login with that account first") )
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API is class with methods available over RPC.
func (*API) DeleteAccount ¶ added in v0.38.1
func (*API) GetAccounts ¶
type MultiAccountsAPI ¶
type MultiAccountsAPI struct {
// contains filtered or unexported fields
}
MultiAccountsAPI is class with methods available over RPC.
func NewMultiAccountsAPI ¶
func NewMultiAccountsAPI(db *multiaccounts.Database, manager *account.Manager) *MultiAccountsAPI
func (*MultiAccountsAPI) UpdateAccount ¶
func (api *MultiAccountsAPI) UpdateAccount(account multiaccounts.Account) error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a browsers service.
func NewService ¶
func NewService(db *accounts.Database, mdb *multiaccounts.Database, manager *account.Manager, feed *event.Feed) *Service
NewService initializes service instance.
type SettingsAPI ¶
type SettingsAPI struct {
// contains filtered or unexported fields
}
SettingsAPI is class with methods available over RPC.
func NewSettingsAPI ¶
func NewSettingsAPI(db *accounts.Database) *SettingsAPI
func (*SettingsAPI) GetConfig ¶
func (api *SettingsAPI) GetConfig(ctx context.Context, typ string) (json.RawMessage, error)
func (*SettingsAPI) GetConfigs ¶
func (api *SettingsAPI) GetConfigs(ctx context.Context, types []string) (map[string]json.RawMessage, error)
func (*SettingsAPI) SaveConfig ¶
func (api *SettingsAPI) SaveConfig(ctx context.Context, typ string, conf json.RawMessage) error
func (*SettingsAPI) SaveNodeConfig ¶
func (api *SettingsAPI) SaveNodeConfig(ctx context.Context, conf *params.NodeConfig) error
Click to show internal directories.
Click to hide internal directories.