db_perm

package
v0.0.0-...-8df6c4b Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPermissionWrapper

func GetPermissionWrapper(key string) []string

func SetPermission

func SetPermission(connpool *pgxpool.Pool, table string, data DbAuthInfo) error

func UpdatePermission

func UpdatePermission(connpool *pgxpool.Pool, table string, data DbAuthInfo) error

Types

type DbAuthInfo

type DbAuthInfo struct {
	ApiKey      string   `db:"apikey"`
	Permissions []string `db:"permissions"`
}

func GetPermission

func GetPermission(connpool *pgxpool.Pool, table string, key string) (DbAuthInfo, error)

Jump to

Keyboard shortcuts

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