auth: Index | Files

package auth_identity

import ""


Package Files

auth_identity.go sign_logs.go

type AuthIdentity Uses

type AuthIdentity struct {

AuthIdentity auth identity session model

type Basic Uses

type Basic struct {
    Provider          string // phone, email, wechat, github...
    UID               string `gorm:"column:uid"`
    EncryptedPassword string
    UserID            string
    ConfirmedAt       *time.Time

Basic basic information about auth identity

func (Basic) ToClaims Uses

func (basic Basic) ToClaims() *claims.Claims

ToClaims convert to auth Claims

type SignLog Uses

type SignLog struct {
    UserAgent string
    At        *time.Time
    IP        string

SignLog sign log

type SignLogs Uses

type SignLogs struct {
    Log         string `sql:"-"`
    SignInCount uint
    Logs        []SignLog

SignLogs record sign in logs

func (*SignLogs) Scan Uses

func (signLogs *SignLogs) Scan(data interface{}) (err error)

Scan scan data into sign logs

func (SignLogs) Value Uses

func (signLogs SignLogs) Value() (driver.Value, error)

Value return struct's Value

Package auth_identity imports 6 packages (graph) and is imported by 34 packages. Updated 2019-09-30. Refresh now. Tools for package owners.