Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrServiceNotInitialized returned when permissions is not initialized/started,. ErrServiceNotInitialized = errors.New("permissions service is not initialized") )
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) AddDappPermissions ¶
func (api *API) AddDappPermissions(ctx context.Context, perms DappPermissions) error
func (*API) DeleteDappPermissions ¶
func (*API) GetDappPermissions ¶
func (api *API) GetDappPermissions(ctx context.Context) ([]DappPermissions, error)
type DappPermissions ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database sql wrapper for operations with browser objects.
func InitializeDB ¶
InitializeDB creates db file at a given path and applies migrations.
func (*Database) AddPermissions ¶
func (db *Database) AddPermissions(perms DappPermissions) (err error)
func (*Database) DeletePermission ¶
func (*Database) GetPermissions ¶
func (db *Database) GetPermissions() (rst []DappPermissions, err error)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) StartDatabase ¶
StartDatabase after dbpath and password will become known.
func (*Service) StopDatabase ¶
Click to show internal directories.
Click to hide internal directories.