mail

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias struct {
	ID          uint `gorm:"primary_key" json:"id"`
	Source      string
	Destination string
	UpdatedAt   time.Time
	CreatedAt   time.Time

	Domain   Domain
	DomainID uint
}

Alias alias

func (Alias) TableName

func (Alias) TableName() string

TableName table name

type Domain

type Domain struct {
	ID        uint `gorm:"primary_key" json:"id"`
	Name      string
	UpdatedAt time.Time `json:"updatedAt"`
	CreatedAt time.Time `json:"createdAt"`
}

Domain domain

func (Domain) TableName

func (Domain) TableName() string

TableName table name

type Plugin

type Plugin struct {
	I18n   *web.I18n      `inject:""`
	Cache  *web.Cache     `inject:""`
	Jwt    *web.Jwt       `inject:""`
	Router *gin.Engine    `inject:""`
	DB     *gorm.DB       `inject:""`
	Render *render.Render `inject:""`
}

Plugin plugin

func (*Plugin) Init

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

Init init beans

func (*Plugin) Mount

func (p *Plugin) Mount() error

Mount register

func (*Plugin) Shell

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

Shell console commands

type User

type User struct {
	ID       uint `gorm:"primary_key" json:"id"`
	FullName string
	Email    string
	Password string
	Enable   bool

	UpdatedAt time.Time
	CreatedAt time.Time

	Domain   Domain
	DomainID uint
}

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