Documentation
¶
Index ¶
- type API
- type DappPermissions
- type Database
- func (db *Database) AddPermissions(perms DappPermissions) (err error)
- func (db Database) Close() error
- func (db *Database) DeleteDappPermission(dappName, permission string) error
- func (db *Database) DeletePermission(name string) error
- func (db *Database) GetPermissions() (rst []DappPermissions, err error)
- func (db *Database) GetPermissionsByDappName(dappName string) (rst *DappPermissions, err error)
- func (db *Database) HasPermission(dappName string, permission string) (bool, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 (*Database) AddPermissions ¶
func (db *Database) AddPermissions(perms DappPermissions) (err error)
func (*Database) DeleteDappPermission ¶ added in v0.92.6
func (*Database) DeletePermission ¶
func (*Database) GetPermissions ¶
func (db *Database) GetPermissions() (rst []DappPermissions, err error)
func (*Database) GetPermissionsByDappName ¶ added in v0.92.6
func (db *Database) GetPermissionsByDappName(dappName string) (rst *DappPermissions, err error)
Click to show internal directories.
Click to hide internal directories.