services

package
v0.0.0-...-d4ea93b Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddColumnsRole

func AddColumnsRole(privatekeyHex string, userAddress common.Address, tableName string, columns []string, columnRoleName string) error

func AddDropKitAdmin

func AddDropKitAdmin(privatekeyHex string, adminAccount common.Address) error

func AddTableAdmin

func AddTableAdmin(privatekeyHex string, adminAddress common.Address, tableName string) error

func AddTableMaintainer

func AddTableMaintainer(privatekeyHex string, maintainerAddress common.Address, tableName string) error

func AddTableMeta

func AddTableMeta(tableName string, privatekeyHex string) (string, error)

func AddTableUser

func AddTableUser(privatekeyHex string, userAddress common.Address, tableName string) error

func BurnToken

func BurnToken(amount int64, privatekeyHex string, burnAccount common.Address) (string, error)

func Consume

func Consume(privatekeyHex string, account common.Address, amount int64) error

func CreateAuthInstance

func CreateAuthInstance(privatekeyHex string) (*bind.TransactOpts, error)

func CreateDropKitInstance

func CreateDropKitInstance() (*dropkit.DropkitContract, error)

func DependencyServicesCheck

func DependencyServicesCheck() (string, error)

func Exec

func Exec(command string) error

func GetAccountBalance

func GetAccountBalance(balanceAccount common.Address) (*big.Int, error)

func GetColumnsRole

func GetColumnsRole(privatekeyHex string, userAddress common.Address, tableName string) ([]string, error)

func GetTableMeta

func GetTableMeta(tableName string) (string, error)

func GetUserColumnsRole

func GetUserColumnsRole(userAddress common.Address, tableName string) (string, error)

func GrantColumnsRole

func GrantColumnsRole(privatekeyHex string, userAddress common.Address, tableName string, columnRoleName string) error

func HasDropKitAdmin

func HasDropKitAdmin(privatekeyHex string, accountAddress common.Address) (bool, error)

func HasTableAdminRole

func HasTableAdminRole(privatekeyHex string, accountAddress common.Address, tableName string) (bool, error)

func HasTableMaintainerRole

func HasTableMaintainerRole(privatekeyHex string, accountAddress common.Address, tableName string) (bool, error)

func HasTableUserRole

func HasTableUserRole(privatekeyHex string, accountAddress common.Address, tableName string) (bool, error)

func InitColumnsRole

func InitColumnsRole(privatekeyHex string, userAddress common.Address, tableName string, columns []string, columnRoleName string) error

func MintToken

func MintToken(amount int64, privatekeyHex string, mintAccount common.Address) (string, error)

func NormalResponse

func NormalResponse(w http.ResponseWriter, payload interface{})

func Query

func Query(command string) (interface{}, error)

func RemoveDropKitAdmin

func RemoveDropKitAdmin(privatekeyHex string, adminAccount common.Address) error

func RemoveTableAdmin

func RemoveTableAdmin(privatekeyHex string, adminAddress common.Address, tableName string) error

func RemoveTableMaintainer

func RemoveTableMaintainer(privatekeyHex string, maintainerAddress common.Address, tableName string) error

func RemoveTableUser

func RemoveTableUser(privatekeyHex string, userAddress common.Address, tableName string) error

func RevokeColumnsRole

func RevokeColumnsRole(privatekeyHex string, userAddress common.Address, tableName string, columnRoleName string) error

func SetUserColumnsRole

func SetUserColumnsRole(privatekeyHex string, userAddress common.Address, tableName string, columnRoleName string) error

func Transfer

func Transfer(privatekeyHex string, toAccount common.Address, amount int64) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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