vpn

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	ID          uint
	TrustedIP   string
	TrustedPort uint
	RemoteIP    string
	RemotePort  uint
	StartUp     time.Time
	ShutDown    *time.Time
	Received    float64
	Send        float64
	User        User
	// contains filtered or unexported fields
}

Log log

type User

type User struct {
	ID        uint
	FullName  string
	Email     string
	Details   string
	Password  string
	Online    bool
	Enable    bool
	Begin     time.Time
	End       time.Time
	UpdatedAt time.Time
	CreatedAt time.Time
	// contains filtered or unexported fields
}

User user

func (*User) ChkPassword

func (p *User) ChkPassword(password string) bool

ChkPassword check password

func (*User) SetPassword

func (p *User) SetPassword(password string) error

SetPassword set password (md5 with salt)

Jump to

Keyboard shortcuts

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