database

package
v0.0.0-...-cf413bb Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright (C) 2021 Sysreturn Community Contributors SPDX-License-Identifier: AGPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSessionKey

func CreateSessionKey(db *sql.DB, in CreateSessionKeyInput) (string, error)

CreateSessionKey inserts a new session for the input Profile

func GetProfilePassword

func GetProfilePassword(db *sql.DB, username string) (string, []byte)

func GetSession

func GetSession(db *sql.DB, accessKey string) (string, error)

Types

type CreateSessionKeyInput

type CreateSessionKeyInput struct {
	Profile       string
	ValidDuration time.Duration
}

Jump to

Keyboard shortcuts

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