Documentation ¶
Index ¶
- type API
- func (api *API) AddDappPermissions(ctx context.Context, perms DappPermissions) error
- func (api *API) DeleteDappPermissions(ctx context.Context, name string) error
- func (api *API) DeleteDappPermissionsByNameAndAddress(ctx context.Context, name string, address string) error
- func (api *API) GetDappPermissions(ctx context.Context) ([]DappPermissions, error)
- type DappPermissions
- type Database
- func (db *Database) AddPermissions(perms DappPermissions) (err error)
- func (db Database) Close() error
- func (db *Database) DeletePermission(name string, address string) error
- func (db *Database) GetPermissions() (rst []DappPermissions, err error)
- func (db *Database) HasPermission(dappName string, address 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) DeleteDappPermissionsByNameAndAddress ¶ added in v0.94.12
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) DeletePermission ¶
func (*Database) GetPermissions ¶
func (db *Database) GetPermissions() (rst []DappPermissions, err error)
Click to show internal directories.
Click to hide internal directories.