mail

package
v0.0.0-...-a0045c4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias struct {
	web.Model
	Source      string
	Destination string
	DomainID    uint
	Domain      Domain
}

Alias alias

func (Alias) TableName

func (Alias) TableName() string

TableName table name

type Domain

type Domain struct {
	web.Model
	Name string
}

Domain domain

func (Domain) TableName

func (Domain) TableName() string

TableName table name

type Plugin

type Plugin struct {
	Db   *gorm.DB   `inject:""`
	Wrap *web.Wrap  `inject:""`
	Jwt  *auth.Jwt  `inject:""`
	I18n *i18n.I18n `inject:""`
}

Plugin plugin

func (*Plugin) Atom

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

Atom rss.atom

func (*Plugin) Console

func (p *Plugin) Console() []cli.Command

Console console commands

func (*Plugin) Init

func (p *Plugin) Init()

Init init config

func (*Plugin) Mount

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

Mount mount web points

func (*Plugin) Open

func (p *Plugin) Open(*inject.Graph) error

Open inject beans

func (*Plugin) Sitemap

func (p *Plugin) Sitemap(languages ...string) ([]stm.URL, error)

Sitemap sitemap.xml.gz

func (*Plugin) Workers

func (p *Plugin) Workers() map[string]job.Handler

Workers job handler

type User

type User struct {
	web.Model
	FullName string
	Email    string
	Password string
	DomainID uint
	Enable   bool
	Domain   Domain
}

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 (SSHA512-CRYPT)

func (User) TableName

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