Documentation
¶
Index ¶
- Variables
- func DBLog(db ab.DB, ec *ab.EntityController, logtype, message string) error
- type EmbedLog
- type GoogleUserDelegate
- type Log
- type LogService
- type PasswordDelegate
- func (d *PasswordDelegate) Get2FAIssuer() string
- func (d *PasswordDelegate) GetAuthID(entity ab.Entity) string
- func (d *PasswordDelegate) GetDBErrorConverter() func(err *pq.Error) ab.VerboseError
- func (d *PasswordDelegate) GetEmail(entity ab.Entity) string
- func (d *PasswordDelegate) GetPassword() auth.Password
- func (d *PasswordDelegate) LoadUser(uuid string) (ab.Entity, error)
- func (d *PasswordDelegate) LoadUserByMail(mail string) (ab.Entity, error)
- type Screening
- type SiteinfoService
- type Step
- type User
- type WalkhubServer
- type Walkthrough
- func LoadActualRevision(db ab.DB, ec *ab.EntityController, UUID string) (*Walkthrough, error)
- func LoadActualRevisions(db ab.DB, ec *ab.EntityController, uuids []string) ([]*Walkthrough, error)
- func LoadAllActualWalkthroughs(db ab.DB, ec *ab.EntityController, start, limit int) ([]*Walkthrough, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var UserDelegate = &auth.SessionUserDelegate{}
View Source
var WalkthroughNotFoundError = errors.New("walkthrough is not found")
Functions ¶
Types ¶
type EmbedLog ¶
type GoogleUserDelegate ¶
type GoogleUserDelegate struct {
}
func (*GoogleUserDelegate) ResolveUniqueID ¶
type Log ¶
type LogService ¶
type LogService struct {
BaseURL string
}
type PasswordDelegate ¶
type PasswordDelegate struct {
// contains filtered or unexported fields
}
func NewPasswordDelegate ¶
func NewPasswordDelegate(db ab.DB, ec *ab.EntityController) *PasswordDelegate
func (*PasswordDelegate) Get2FAIssuer ¶
func (d *PasswordDelegate) Get2FAIssuer() string
func (*PasswordDelegate) GetDBErrorConverter ¶
func (d *PasswordDelegate) GetDBErrorConverter() func(err *pq.Error) ab.VerboseError
func (*PasswordDelegate) GetPassword ¶
func (d *PasswordDelegate) GetPassword() auth.Password
func (*PasswordDelegate) LoadUser ¶
func (d *PasswordDelegate) LoadUser(uuid string) (ab.Entity, error)
func (*PasswordDelegate) LoadUserByMail ¶
func (d *PasswordDelegate) LoadUserByMail(mail string) (ab.Entity, error)
type Screening ¶
type Screening struct {
UUID string `dbtype:"uuid" dbdefault:"uuid_generate_v4()" json:"uuid"`
WID string `dbtype:"uuid" json:"wid"`
UID string `dbtype:"uuid" json:"uid"`
Steps uint `dbtype:"smallint" json:"steps"`
Created time.Time `dbdefault:"now()" json:"created"`
Published bool `json:"published"`
}
func (*Screening) ScreenshotPath ¶
type SiteinfoService ¶
type SiteinfoService struct {
BaseURLs []string
// contains filtered or unexported fields
}
func NewSiteinfoService ¶
func NewSiteinfoService(baseurls ...string) *SiteinfoService
func (*SiteinfoService) SchemaInstalled ¶
func (sis *SiteinfoService) SchemaInstalled(db ab.DB) bool
func (*SiteinfoService) SchemaSQL ¶
func (sis *SiteinfoService) SchemaSQL() string
type User ¶
type WalkhubServer ¶
type WalkhubServer struct {
*ab.Server
BaseURL string
HTTPAddr string
HTTPOrigin string
RedirectAll bool
EnforceDomains bool
CustomPaths []string
PWAuth bool
AuthCreds struct {
SMTP struct {
Addr string
Identity, Username, Password, Host string
From string
}
Google auth.OAuthCredentials
}
// contains filtered or unexported fields
}
type Walkthrough ¶
type Walkthrough struct {
Revision string `dbtype:"uuid" dbdefault:"uuid_generate_v4()" json:"revision"`
UUID string `dbtype:"uuid" dbdefault:"uuid_generate_v4()" json:"uuid"`
UID string `dbtype:"uuid" json:"uid"`
Name string `constructor:"true" json:"name"`
Description string `dbtype:"text" json:"description"`
Steps []Step `dbtype:"jsonb" json:"steps"`
Updated time.Time `json:"updated"`
Published bool `json:"published"`
}
func LoadActualRevision ¶
func LoadActualRevision(db ab.DB, ec *ab.EntityController, UUID string) (*Walkthrough, error)
func LoadActualRevisions ¶
func LoadActualRevisions(db ab.DB, ec *ab.EntityController, uuids []string) ([]*Walkthrough, error)
func LoadAllActualWalkthroughs ¶
func LoadAllActualWalkthroughs(db ab.DB, ec *ab.EntityController, start, limit int) ([]*Walkthrough, error)
func (*Walkthrough) GetID ¶
func (w *Walkthrough) GetID() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.