db

package
v0.0.0-...-716047f Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

func NewDB

func NewDB(conn *sqlx.DB) *DB

NewRepo returns db implements Repo interface

func (*DB) AuthKey

func (db *DB) AuthKey(accessKey string) (models.AuthKey, error)

func (*DB) PathPermissionIDs

func (db *DB) PathPermissionIDs(accessKey string) ([]int, error)

func (*DB) PathPermissions

func (db *DB) PathPermissions() ([]models.PathPermission, error)

func (*DB) SetAuthKey

func (db *DB) SetAuthKey(authKey models.AuthKey) error

Jump to

Keyboard shortcuts

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