auth

package
v0.0.0-...-34dd3eb Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: MIT, AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Username/Password authentication for Kirino Media Server

Index

Constants

View Source
const (
	BcryptCost = bcrypt.DefaultCost
)

Variables

This section is empty.

Functions

func CheckPassword

func CheckPassword(u User, password string) (matches bool)

Types

type User

type User struct {
	Username string
	Password string
	// contains filtered or unexported fields
}

func NewUser

func NewUser(username, password string) User

Jump to

Keyboard shortcuts

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