Documentation ¶
Index ¶
- type AdminAPI
- func (api *AdminAPI) AddRolesToUser(ctx context.Context, username string, roles []*persist.Role) (*db.User, error)
- func (api *AdminAPI) AddWalletToUserUnchecked(ctx context.Context, username string, chainAddress persist.ChainAddress, ...) error
- func (api *AdminAPI) RemoveContractOverrideCreator(ctx context.Context, contractID persist.DBID) error
- func (api *AdminAPI) RemoveRolesFromUser(ctx context.Context, username string, roles []*persist.Role) (*db.User, error)
- func (api *AdminAPI) SetContractOverrideCreator(ctx context.Context, contractID persist.DBID, creatorUserID persist.DBID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminAPI ¶
type AdminAPI struct {
// contains filtered or unexported fields
}
func NewAPI ¶
func NewAPI(repos *postgres.Repositories, queries *db.Queries, authRefreshCache *redis.Cache, validator *validator.Validate, mp *multichain.Provider) *AdminAPI
func (*AdminAPI) AddRolesToUser ¶
func (*AdminAPI) AddWalletToUserUnchecked ¶
func (api *AdminAPI) AddWalletToUserUnchecked(ctx context.Context, username string, chainAddress persist.ChainAddress, walletType persist.WalletType) error
func (*AdminAPI) RemoveContractOverrideCreator ¶
func (*AdminAPI) RemoveRolesFromUser ¶
Click to show internal directories.
Click to hide internal directories.