Documentation ¶
Index ¶
- Constants
- Variables
- func DeleteProject(p *Project) *gorm.DB
- func EmailExists(email string) (bool, *gorm.DB)
- func GetConnection() *gorm.DB
- func HashPlainPassword(password string) string
- func InitDatabase()
- func NewConnection() *gorm.DB
- func ProjectIndexName(projectUUID string) string
- type BaseModel
- type Project
- type User
Constants ¶
View Source
const (
// LogIndexPrefix ElasticSearch index name prefix
LogIndexPrefix = "logs"
)
Variables ¶
View Source
var (
ErrorProjectNotFound = errors.New("Project not found")
)
View Source
var (
ErrorUserNotFound = errors.New("User not found")
)
Functions ¶
func DeleteProject ¶
func GetConnection ¶
GetConnection returns database connection instance
func HashPlainPassword ¶
func InitDatabase ¶
func InitDatabase()
func ProjectIndexName ¶
ProjectIndexName build ElasticSearch index name for project logs.
Types ¶
type Project ¶
type User ¶
func FindUserByID ¶
Click to show internal directories.
Click to hide internal directories.