vpn

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Db     *gorm.DB             `inject:""`
	I18n   *web.I18n            `inject:""`
	Jwt    *auth.Jwt            `inject:""`
	Key    []byte               `inject:"jwt.key"`
	Method crypto.SigningMethod `inject:"jwt.method"`
}

Engine engine

func (*Engine) Atom

func (p *Engine) Atom(lang string) ([]*atom.Entry, error)

Atom rss.atom

func (*Engine) Mount

func (p *Engine) Mount(rt *gin.Engine)

Mount web mount-points

func (*Engine) RegisterWorker added in v0.3.0

func (p *Engine) RegisterWorker()

RegisterWorker register worker

func (*Engine) Shell

func (p *Engine) Shell() []cli.Command

Shell shell commands

func (*Engine) Sitemap

func (p *Engine) Sitemap() ([]stm.URL, error)

Sitemap sitemap.xml.gz

type Log added in v0.4.1

type Log struct {
	ID          uint
	TrustedIP   string
	TrustedPort uint
	RemoteIP    string
	RemotePort  uint
	StartUp     time.Time
	ShutDown    *time.Time
	Received    float64
	Send        float64

	UserID uint
	User   User
}

Log log

func (Log) TableName added in v0.4.1

func (Log) TableName() string

TableName table name

type User added in v0.4.1

type User struct {
	web.Model
	FullName string
	Email    string
	Details  string
	Password string
	Online   bool
	Enable   bool
	StartUp  time.Time
	ShutDown time.Time
}

User user

func (*User) ChkPassword added in v0.4.1

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

ChkPassword check password

func (*User) SetPassword added in v0.4.1

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

SetPassword set password (md5 with salt)

func (User) TableName added in v0.4.1

func (User) TableName() string

TableName table name

Jump to

Keyboard shortcuts

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