adminapi

package
v0.0.0-...-476b611 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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 (api *AdminAPI) AddRolesToUser(ctx context.Context, username string, roles []*persist.Role) (*db.User, error)

func (*AdminAPI) AddWalletToUserUnchecked

func (api *AdminAPI) AddWalletToUserUnchecked(ctx context.Context, username string, chainAddress persist.ChainAddress, walletType persist.WalletType) error

func (*AdminAPI) RemoveContractOverrideCreator

func (api *AdminAPI) RemoveContractOverrideCreator(ctx context.Context, contractID persist.DBID) error

func (*AdminAPI) RemoveRolesFromUser

func (api *AdminAPI) RemoveRolesFromUser(ctx context.Context, username string, roles []*persist.Role) (*db.User, error)

func (*AdminAPI) SetContractOverrideCreator

func (api *AdminAPI) SetContractOverrideCreator(ctx context.Context, contractID persist.DBID, creatorUserID persist.DBID) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL