ATmodels

package
v0.0.0-...-574c6f2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthUser

type AuthUser struct {
	Email                string `gorm:"primary_key"`
	Username             string
	Password             string
	Is_email_activated   bool
	Register_timestamp   int64
	Last_login_timestamp int64
	Register_ip          string
	Last_login_ip        string
	Role                 string
}

type Config

type Config struct {
	Key                 string              `json:"Key"`
	DbSettings          DbSettings          `json:"DbSettings"`
	EmailSenderSettings EmailSenderSettings `json:"EmailSenderSettings"`
	RedisSettings       RedisSettings       `json:"RedisSettings"`
	HostName            string              `json:"HostName"`
}

type DbSettings

type DbSettings struct {
	Username string `json:"Username"`
	Password string `json:"Password"`
	Hostname string `json:"Hostname"`
	Dbname   string `json:"Dbname"`
}

type EmailSenderSettings

type EmailSenderSettings struct {
	Email      string `json:"Email"`
	Password   string `json:"Password"`
	Servername string `json:"Servername"`
}

Case Sensitive! Need a uppercase suffix

type RedisSettings

type RedisSettings struct {
	Address  string `json:"Address"`
	Password string `json:"Password"`
	Port     string `json:"Port"`
}

Jump to

Keyboard shortcuts

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