Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func CreateMongoDbAuthentication ¶
func CreateMongoDbAuthentication(collection *mongo.Collection, config *contracts.AuthenticationConfig) *Mongo
func (*Mongo) Dashboard ¶
func (mongo *Mongo) Dashboard() contracts.DashboardAuthentication
func (*Mongo) SMTP ¶
func (mongo *Mongo) SMTP() contracts.SmtpAuthentication
func (*Mongo) UsersStorage ¶
func (mongo *Mongo) UsersStorage() contracts.UsersStorage
type UserRow ¶
type UserRow struct { Username string `bson:"username"` DashboardPass string `bson:"dashboard_password"` SmtpPass string `bson:"smtp_password"` SmtpAuthIPs []string `bson:"smtp_auth_ips"` SmtpAllowListedIPs []string `bson:"smtp_allow_listed_ips"` DashboardAuthEmails []string `bson:"dashboard_auth_emails"` }
Click to show internal directories.
Click to hide internal directories.