Documentation ¶
Overview ¶
* * Gosora MSSQL Interface * Copyright Azareal 2017 - 2018 *
* * Gosora MySQL Interface * Copyright Azareal 2017 - 2020 *
* * Gosora PostgreSQL Interface * Under heavy development * Copyright Azareal 2017 - 2019 *
Index ¶
- func BcryptGeneratePassword(password string) (hash string, salt string, err error)
- func GenerateSafeString(length int) (string, error)
- type InstallAdapter
- type MssqlInstaller
- func (ins *MssqlInstaller) CreateAdmin() error
- func (ins *MssqlInstaller) DBHost() string
- func (ins *MssqlInstaller) DBName() string
- func (ins *MssqlInstaller) DBPassword() string
- func (ins *MssqlInstaller) DBPort() string
- func (ins *MssqlInstaller) DBUsername() string
- func (ins *MssqlInstaller) DefaultPort() string
- func (ins *MssqlInstaller) InitDatabase() (err error)
- func (ins *MssqlInstaller) InitialData() (err error)
- func (ins *MssqlInstaller) Name() string
- func (ins *MssqlInstaller) SetConfig(dbHost string, dbUsername string, dbPassword string, dbName string, ...)
- func (ins *MssqlInstaller) TableDefs() (err error)
- type MysqlInstaller
- func (ins *MysqlInstaller) CreateAdmin() error
- func (ins *MysqlInstaller) DBHost() string
- func (ins *MysqlInstaller) DBName() string
- func (ins *MysqlInstaller) DBPassword() string
- func (ins *MysqlInstaller) DBPort() string
- func (ins *MysqlInstaller) DBUsername() string
- func (ins *MysqlInstaller) DefaultPort() string
- func (ins *MysqlInstaller) InitDatabase() (err error)
- func (ins *MysqlInstaller) InitialData() error
- func (ins *MysqlInstaller) Name() string
- func (ins *MysqlInstaller) SetConfig(dbHost string, dbUsername string, dbPassword string, dbName string, ...)
- func (ins *MysqlInstaller) TableDefs() (err error)
- type PgsqlInstaller
- func (ins *PgsqlInstaller) CreateAdmin() error
- func (ins *PgsqlInstaller) DBHost() string
- func (ins *PgsqlInstaller) DBName() string
- func (ins *PgsqlInstaller) DBPassword() string
- func (ins *PgsqlInstaller) DBPort() string
- func (ins *PgsqlInstaller) DBUsername() string
- func (ins *PgsqlInstaller) DefaultPort() string
- func (ins *PgsqlInstaller) InitDatabase() (err error)
- func (ins *PgsqlInstaller) InitialData() (err error)
- func (ins *PgsqlInstaller) Name() string
- func (ins *PgsqlInstaller) SetConfig(dbHost string, dbUsername string, dbPassword string, dbName string, ...)
- func (ins *PgsqlInstaller) TableDefs() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BcryptGeneratePassword ¶
Generate a bcrypt hash Note: The salt is in the hash, therefore the salt value is blank
func GenerateSafeString ¶
Generate a cryptographically secure set of random bytes..
Types ¶
type InstallAdapter ¶
type InstallAdapter interface { Name() string DefaultPort() string SetConfig(dbHost, dbUsername, dbPassword, dbName, dbPort string) InitDatabase() error TableDefs() error InitialData() error CreateAdmin() error DBHost() string DBUsername() string DBPassword() string DBName() string DBPort() string }
func Lookup ¶
func Lookup(name string) (InstallAdapter, bool)
type MssqlInstaller ¶
type MssqlInstaller struct {
// contains filtered or unexported fields
}
func (*MssqlInstaller) CreateAdmin ¶
func (ins *MssqlInstaller) CreateAdmin() error
func (*MssqlInstaller) DBHost ¶
func (ins *MssqlInstaller) DBHost() string
func (*MssqlInstaller) DBName ¶
func (ins *MssqlInstaller) DBName() string
func (*MssqlInstaller) DBPassword ¶
func (ins *MssqlInstaller) DBPassword() string
func (*MssqlInstaller) DBPort ¶
func (ins *MssqlInstaller) DBPort() string
func (*MssqlInstaller) DBUsername ¶
func (ins *MssqlInstaller) DBUsername() string
func (*MssqlInstaller) DefaultPort ¶
func (ins *MssqlInstaller) DefaultPort() string
func (*MssqlInstaller) InitDatabase ¶
func (ins *MssqlInstaller) InitDatabase() (err error)
func (*MssqlInstaller) InitialData ¶
func (ins *MssqlInstaller) InitialData() (err error)
func (*MssqlInstaller) Name ¶
func (ins *MssqlInstaller) Name() string
func (*MssqlInstaller) TableDefs ¶
func (ins *MssqlInstaller) TableDefs() (err error)
type MysqlInstaller ¶
type MysqlInstaller struct {
// contains filtered or unexported fields
}
func (*MysqlInstaller) CreateAdmin ¶
func (ins *MysqlInstaller) CreateAdmin() error
func (*MysqlInstaller) DBHost ¶
func (ins *MysqlInstaller) DBHost() string
func (*MysqlInstaller) DBName ¶
func (ins *MysqlInstaller) DBName() string
func (*MysqlInstaller) DBPassword ¶
func (ins *MysqlInstaller) DBPassword() string
func (*MysqlInstaller) DBPort ¶
func (ins *MysqlInstaller) DBPort() string
func (*MysqlInstaller) DBUsername ¶
func (ins *MysqlInstaller) DBUsername() string
func (*MysqlInstaller) DefaultPort ¶
func (ins *MysqlInstaller) DefaultPort() string
func (*MysqlInstaller) InitDatabase ¶
func (ins *MysqlInstaller) InitDatabase() (err error)
func (*MysqlInstaller) InitialData ¶
func (ins *MysqlInstaller) InitialData() error
func (*MysqlInstaller) Name ¶
func (ins *MysqlInstaller) Name() string
func (*MysqlInstaller) TableDefs ¶
func (ins *MysqlInstaller) TableDefs() (err error)
type PgsqlInstaller ¶
type PgsqlInstaller struct {
// contains filtered or unexported fields
}
func (*PgsqlInstaller) CreateAdmin ¶
func (ins *PgsqlInstaller) CreateAdmin() error
func (*PgsqlInstaller) DBHost ¶
func (ins *PgsqlInstaller) DBHost() string
func (*PgsqlInstaller) DBName ¶
func (ins *PgsqlInstaller) DBName() string
func (*PgsqlInstaller) DBPassword ¶
func (ins *PgsqlInstaller) DBPassword() string
func (*PgsqlInstaller) DBPort ¶
func (ins *PgsqlInstaller) DBPort() string
func (*PgsqlInstaller) DBUsername ¶
func (ins *PgsqlInstaller) DBUsername() string
func (*PgsqlInstaller) DefaultPort ¶
func (ins *PgsqlInstaller) DefaultPort() string
func (*PgsqlInstaller) InitDatabase ¶
func (ins *PgsqlInstaller) InitDatabase() (err error)
func (*PgsqlInstaller) InitialData ¶
func (ins *PgsqlInstaller) InitialData() (err error)
func (*PgsqlInstaller) Name ¶
func (ins *PgsqlInstaller) Name() string
func (*PgsqlInstaller) TableDefs ¶
func (ins *PgsqlInstaller) TableDefs() (err error)
Click to show internal directories.
Click to hide internal directories.