authentication

package
v0.0.92 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Username string
	Domain   string
}

func NewUser

func NewUser(TLSRequest *tls.ConnectionState) *User

func (*User) CreateUser

func (user *User) CreateUser(k *keys.Keys, agent string, username string, domain string, externalIP string) (string, error)

func (*User) FromString

func (user *User) FromString(str string) error

func (*User) ReadTLSFromGinCtx

func (user *User) ReadTLSFromGinCtx(TLSRequest *tls.ConnectionState)

func (*User) ToBytes added in v0.0.57

func (user *User) ToBytes() []byte

func (*User) ToString

func (user *User) ToString() string

Jump to

Keyboard shortcuts

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