integration

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAdmAuth

func AddAdmAuth(request *http.Request) *http.Request

func AddAuth

func AddAuth(req *http.Request, s string) *http.Request

func InsertAdmin

func InsertAdmin(t *testing.T, db *sqlx.DB, params *InsertAdminParams)

func InsertIPKey

func InsertIPKey(t *testing.T, db *sqlx.DB, project string) string

func NewDB

func NewDB() (*sqlx.DB, error)

func ResetSettings

func ResetSettings(t *testing.T, db *sqlx.DB, key string)

Types

type InsertAdminParams

type InsertAdminParams struct {
	Projects    []string
	KeyHash     string
	Permissions []string
	MaxLimit    float64
	MaxValidTo  time.Time
	Disabled    bool
}

Jump to

Keyboard shortcuts

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