Documentation ¶
Index ¶
- Constants
- Variables
- func CheckPasswordHash(password, hash string) bool
- func HashPassword(password string) (string, error)
- type ACL
- type DataBase
- func (db *DataBase) AddLocation(userId ObjectId, zoneName string, l NewLocation) (ObjectId, error)
- func (db *DataBase) AddRecordSet(userId ObjectId, zoneName string, location string, r NewRecordSet) (ObjectId, error)
- func (db *DataBase) AddUser(u NewUser) (ObjectId, error)
- func (db *DataBase) AddVerification(name string, verificationType string) (string, error)
- func (db *DataBase) AddZone(userId ObjectId, z NewZone, soa types.SOA_RRSet, ns types.NS_RRSet) (ObjectId, error)
- func (db *DataBase) Clear(removeUsers bool) error
- func (db *DataBase) Close() error
- func (db *DataBase) DeleteLocation(userId ObjectId, zoneName string, location string) (int64, error)
- func (db *DataBase) DeleteRecordSet(userId ObjectId, zoneName string, location string, recordType string) (int64, error)
- func (db *DataBase) DeleteUser(name string) (int64, error)
- func (db *DataBase) DeleteZone(userId ObjectId, zoneName string) (int64, error)
- func (db *DataBase) GetLocation(userId ObjectId, zoneName string, location string) (Location, error)
- func (db *DataBase) GetLocations(userId ObjectId, zoneName string, start int, count int, q string) (List, error)
- func (db *DataBase) GetRecordSet(userId ObjectId, zoneName string, location string, recordType string) (RecordSet, error)
- func (db *DataBase) GetRecordSets(userId ObjectId, zoneName string, location string) (List, error)
- func (db *DataBase) GetUser(name string) (User, error)
- func (db *DataBase) GetZone(userId ObjectId, zoneName string) (Zone, error)
- func (db *DataBase) GetZones(userId ObjectId, start int, count int, q string) (List, error)
- func (db *DataBase) UpdateLocation(userId ObjectId, zoneName string, location string, l LocationUpdate) (int64, error)
- func (db *DataBase) UpdateRecordSet(userId ObjectId, zoneName string, location string, recordType string, ...) (int64, error)
- func (db *DataBase) UpdateZone(userId ObjectId, zoneName string, z ZoneUpdate) (int64, error)
- func (db *DataBase) Verify(code string) error
- type List
- type ListItem
- type Location
- type LocationUpdate
- type NewLocation
- type NewRecordSet
- type NewUser
- type NewZone
- type ObjectId
- type RecordSet
- type RecordSetUpdate
- type User
- type Zone
- type ZoneUpdate
Constants ¶
View Source
const ( UserStatusActive = "active" UserStatusDisabled = "disabled" UserStatusPending = "pending" )
View Source
const (
VerificationTypeSignup = "signup"
)
Variables ¶
Functions ¶
func CheckPasswordHash ¶
func HashPassword ¶
Types ¶
type DataBase ¶
type DataBase struct {
// contains filtered or unexported fields
}
func (*DataBase) AddLocation ¶
func (*DataBase) AddRecordSet ¶
func (*DataBase) AddVerification ¶
func (*DataBase) DeleteLocation ¶
func (*DataBase) DeleteRecordSet ¶
func (*DataBase) DeleteZone ¶
func (*DataBase) GetLocation ¶
func (*DataBase) GetLocations ¶
func (*DataBase) GetRecordSet ¶
func (*DataBase) GetRecordSets ¶
func (*DataBase) UpdateLocation ¶
func (*DataBase) UpdateRecordSet ¶
func (*DataBase) UpdateZone ¶
type LocationUpdate ¶
type LocationUpdate struct {
Enabled bool
}
type NewLocation ¶
type NewRecordSet ¶
type ObjectId ¶
type ObjectId string
const EmptyObjectId ObjectId = ""
func NewObjectId ¶
func NewObjectId() ObjectId
type RecordSetUpdate ¶
Click to show internal directories.
Click to hide internal directories.