SYMBOL INDEX (3142 symbols across 382 files)
FILE: cmd/common_hook_gen/hookgen.go
type HookVars (line 10) | type HookVars struct
type Hook (line 15) | type Hook struct
function AddHooks (line 28) | func AddHooks(add func(name, params, ret, htype string, multiHook, skip ...
function Write (line 70) | func Write(hookVars HookVars) {
function writeFile (line 103) | func writeFile(name, body string) error {
FILE: cmd/elasticsearch/setup.go
function main (line 18) | func main() {
function prepMySQL (line 60) | func prepMySQL() error {
type ESIndexBase (line 71) | type ESIndexBase struct
type ESIndexMappings (line 75) | type ESIndexMappings struct
type ESIndexDoc (line 79) | type ESIndexDoc struct
type ESDocMap (line 83) | type ESDocMap
method Add (line 85) | func (d ESDocMap) Add(column string, cType string) {
function setupIndices (line 89) | func setupIndices(client *elastic.Client) error {
type ESTopic (line 161) | type ESTopic struct
type ESReply (line 169) | type ESReply struct
function setupData (line 177) | func setupData(client *elastic.Client) error {
FILE: cmd/hook_gen/main.go
function main (line 17) | func main() {
FILE: cmd/hook_stub_gen/main.go
function main (line 13) | func main() {
FILE: cmd/install/install.go
function main (line 37) | func main() {
function abortError (line 179) | func abortError(err error) {
function handleDatabaseDetails (line 185) | func handleDatabaseDetails() (adap install.InstallAdapter, ok bool) {
function getSiteDetails (line 257) | func getSiteDetails() bool {
function obfuscatePassword (line 307) | func obfuscatePassword(password string) (out string) {
function pressAnyKey (line 314) | func pressAnyKey() {
FILE: cmd/query_gen/main.go
function main (line 18) | func main() {
function writeStatements (line 50) | func writeStatements(a qgen.Adapter) (err error) {
function seedTables (line 75) | func seedTables(a qgen.Adapter) error {
type LitStr (line 305) | type LitStr
function writeSelects (line 307) | func writeSelects(a qgen.Adapter) error {
function writeLeftJoins (line 321) | func writeLeftJoins(a qgen.Adapter) error {
function writeInnerJoins (line 327) | func writeInnerJoins(a qgen.Adapter) (err error) {
function writeInserts (line 331) | func writeInserts(a qgen.Adapter) error {
function writeUpdates (line 339) | func writeUpdates(a qgen.Adapter) error {
function writeDeletes (line 351) | func writeDeletes(a qgen.Adapter) error {
function writeSimpleCounts (line 362) | func writeSimpleCounts(a qgen.Adapter) error {
function writeInsertSelects (line 366) | func writeInsertSelects(a qgen.Adapter) error {
function writeInsertLeftJoins (line 386) | func writeInsertLeftJoins(a qgen.Adapter) error {
function writeInsertInnerJoins (line 390) | func writeInsertInnerJoins(a qgen.Adapter) error {
function writeFile (line 394) | func writeFile(name, content string) (err error) {
FILE: cmd/query_gen/spitter.go
type PrimaryKeySpitter (line 6) | type PrimaryKeySpitter struct
method Hook (line 14) | func (spit *PrimaryKeySpitter) Hook(name string, args ...interface{}) ...
method Write (line 35) | func (spit *PrimaryKeySpitter) Write() error {
function NewPrimaryKeySpitter (line 10) | func NewPrimaryKeySpitter() *PrimaryKeySpitter {
FILE: cmd/query_gen/tables.go
function createTables (line 14) | func createTables(a qgen.Adapter) error {
function createTables2 (line 23) | func createTables2(a qgen.Adapter, f func(table, charset, collation stri...
FILE: common/activity_stream.go
type ActivityStream (line 11) | type ActivityStream interface
type DefaultActivityStream (line 22) | type DefaultActivityStream struct
method Add (line 48) | func (s *DefaultActivityStream) Add(a Alert) (int, error) {
method Get (line 57) | func (s *DefaultActivityStream) Get(id int) (Alert, error) {
method Delete (line 63) | func (s *DefaultActivityStream) Delete(id int) error {
method DeleteByParams (line 68) | func (s *DefaultActivityStream) DeleteByParams(event string, elementID...
method DeleteByParamsExtra (line 73) | func (s *DefaultActivityStream) DeleteByParamsExtra(event string, elem...
method AidsByParams (line 78) | func (s *DefaultActivityStream) AidsByParams(event string, elementID i...
method AidsByParamsExtra (line 94) | func (s *DefaultActivityStream) AidsByParamsExtra(event string, elemen...
method Count (line 111) | func (s *DefaultActivityStream) Count() (count int) {
function NewDefaultActivityStream (line 33) | func NewDefaultActivityStream(acc *qgen.Accumulator) (*DefaultActivitySt...
FILE: common/activity_stream_matches.go
type ActivityStreamMatches (line 11) | type ActivityStreamMatches interface
type DefaultActivityStreamMatches (line 18) | type DefaultActivityStreamMatches struct
method Add (line 33) | func (s *DefaultActivityStreamMatches) Add(watcher, asid int) error {
method Delete (line 38) | func (s *DefaultActivityStreamMatches) Delete(watcher, asid int) error {
method DeleteAndCountChanged (line 43) | func (s *DefaultActivityStreamMatches) DeleteAndCountChanged(watcher, ...
method CountAsid (line 52) | func (s *DefaultActivityStreamMatches) CountAsid(asid int) int {
function NewDefaultActivityStreamMatches (line 24) | func NewDefaultActivityStreamMatches(acc *qgen.Accumulator) (*DefaultAct...
FILE: common/alerts.go
type Alert (line 22) | type Alert struct
type AlertStmts (line 35) | type AlertStmts struct
function init (line 44) | func init() {
constant AlertsGrowHint (line 57) | AlertsGrowHint = len(`{"msgs":[],"count":,"tc":}`) + 1 + 10
function escapeTextInJson (line 60) | func escapeTextInJson(in string) string {
function BuildAlert (line 65) | func BuildAlert(a Alert, user User /* The current user */) (out string, ...
function buildAlertString (line 163) | func buildAlertString(msg string, sub []string, path, avatar string, asi...
constant AlertsGrowHint2 (line 169) | AlertsGrowHint2 = len(`{"msg":"","sub":[],"path":"","img":"","id":}`) + ...
function buildAlertSb (line 172) | func buildAlertSb(sb *strings.Builder, msg string, sub []string, path, a...
function BuildAlertSb (line 194) | func BuildAlertSb(sb *strings.Builder, a *Alert, u *User /* The current ...
function AddActivityAndNotifyAll (line 304) | func AddActivityAndNotifyAll(a Alert) error {
function AddActivityAndNotifyTarget (line 313) | func AddActivityAndNotifyTarget(a Alert) error {
function NotifyWatchers (line 337) | func NotifyWatchers(asid int) error {
function notifyWatchers (line 353) | func notifyWatchers(asid int) {
function DismissAlert (line 383) | func DismissAlert(uid, aid int) {
FILE: common/alerts/tmpls.go
type AlertItem (line 5) | type AlertItem struct
FILE: common/analytics.go
type AnalyticsTimeRange (line 13) | type AnalyticsTimeRange struct
type AnalyticsStore (line 21) | type AnalyticsStore interface
type DefaultAnalytics (line 25) | type DefaultAnalytics struct
method FillViewMap (line 43) | func (s *DefaultAnalytics) FillViewMap(tbl string, tr *AnalyticsTimeRa...
function NewDefaultAnalytics (line 28) | func NewDefaultAnalytics() *DefaultAnalytics {
function AnalyticsTimeRangeToLabelList (line 56) | func AnalyticsTimeRangeToLabelList(tr *AnalyticsTimeRange) (revLabelList...
function AnalyticsRowsToViewMap (line 68) | func AnalyticsRowsToViewMap(rows *sql.Rows, labelList []int64, viewMap m...
FILE: common/attachments.go
type MiniAttachment (line 19) | type MiniAttachment struct
type Attachment (line 31) | type Attachment struct
type AttachmentStore (line 45) | type AttachmentStore interface
type DefaultAttachmentStore (line 63) | type DefaultAttachmentStore struct
method GetForRenderRoute (line 105) | func (s *DefaultAttachmentStore) GetForRenderRoute(filename string, si...
method MiniGetList (line 112) | func (s *DefaultAttachmentStore) MiniGetList(originTable string, origi...
method BulkMiniGetList (line 137) | func (s *DefaultAttachmentStore) BulkMiniGetList(originTable string, i...
method FGet (line 180) | func (s *DefaultAttachmentStore) FGet(id int) (*Attachment, error) {
method Get (line 194) | func (s *DefaultAttachmentStore) Get(id int) (*MiniAttachment, error) {
method Add (line 208) | func (s *DefaultAttachmentStore) Add(sectionID int, sectionTable strin...
method MoveTo (line 217) | func (s *DefaultAttachmentStore) MoveTo(sectionID, originID int, origi...
method MoveToByExtra (line 222) | func (s *DefaultAttachmentStore) MoveToByExtra(sectionID int, originTa...
method Count (line 227) | func (s *DefaultAttachmentStore) Count() (count int) {
method CountIn (line 235) | func (s *DefaultAttachmentStore) CountIn(originTable string, oid int) ...
method CountInPath (line 243) | func (s *DefaultAttachmentStore) CountInPath(path string) (count int) {
method Delete (line 251) | func (s *DefaultAttachmentStore) Delete(id int) error {
method AddLinked (line 257) | func (s *DefaultAttachmentStore) AddLinked(otable string, oid int) (er...
method RemoveLinked (line 279) | func (s *DefaultAttachmentStore) RemoveLinked(otable string, oid int) ...
function NewDefaultAttachmentStore (line 81) | func NewDefaultAttachmentStore(acc *qgen.Accumulator) (*DefaultAttachmen...
function DeleteAttachment (line 300) | func DeleteAttachment(aid int) error {
function deleteAttachment (line 313) | func deleteAttachment(a *Attachment) error {
FILE: common/audit_logs.go
type LogItem (line 13) | type LogItem struct
type LogStore (line 23) | type LogStore interface
type SQLModLogStore (line 30) | type SQLModLogStore struct
method Create (line 48) | func (s *SQLModLogStore) Create(action string, elementID int, elementT...
method CreateExtra (line 52) | func (s *SQLModLogStore) CreateExtra(action string, elementID int, ele...
method Count (line 57) | func (s *SQLModLogStore) Count() (count int) {
method GetOffset (line 79) | func (s *SQLModLogStore) GetOffset(offset, perPage int) (logs []LogIte...
function NewModLogStore (line 36) | func NewModLogStore(acc *qgen.Accumulator) (*SQLModLogStore, error) {
function buildLogList (line 65) | func buildLogList(rows *sql.Rows) (logs []LogItem, err error) {
type SQLAdminLogStore (line 88) | type SQLAdminLogStore struct
method Create (line 105) | func (s *SQLAdminLogStore) Create(action string, elementID int, elemen...
method CreateExtra (line 109) | func (s *SQLAdminLogStore) CreateExtra(action string, elementID int, e...
method Count (line 114) | func (s *SQLAdminLogStore) Count() (count int) {
method GetOffset (line 122) | func (s *SQLAdminLogStore) GetOffset(offset, perPage int) (logs []LogI...
function NewAdminLogStore (line 94) | func NewAdminLogStore(acc *qgen.Accumulator) (*SQLAdminLogStore, error) {
FILE: common/auth.go
constant SaltLength (line 29) | SaltLength int = 32
constant SessionLength (line 30) | SessionLength int = 80
type AuthInt (line 68) | type AuthInt interface
type DefaultAuth (line 82) | type DefaultAuth struct
method Authenticate (line 101) | func (auth *DefaultAuth) Authenticate(name, password string) (uid int,...
method ValidateMFAToken (line 131) | func (auth *DefaultAuth) ValidateMFAToken(mfaToken string, uid int) er...
method ForceLogout (line 164) | func (auth *DefaultAuth) ForceLogout(uid int) error {
method Logout (line 196) | func (auth *DefaultAuth) Logout(w http.ResponseWriter, _ int) {
method SetCookies (line 205) | func (auth *DefaultAuth) SetCookies(w http.ResponseWriter, uid int, se...
method SetProvisionalCookies (line 214) | func (auth *DefaultAuth) SetProvisionalCookies(w http.ResponseWriter, ...
method GetCookies (line 224) | func (auth *DefaultAuth) GetCookies(r *http.Request) (uid int, session...
method SessionCheck (line 242) | func (auth *DefaultAuth) SessionCheck(w http.ResponseWriter, r *http.R...
method CreateSession (line 266) | func (auth *DefaultAuth) CreateSession(uid int) (session string, err e...
method CreateProvisionalSession (line 285) | func (auth *DefaultAuth) CreateProvisionalSession(uid int) (provSessio...
function NewDefaultAuth (line 89) | func NewDefaultAuth() (*DefaultAuth, error) {
function setCookie (line 178) | func setCookie(w http.ResponseWriter, cookie *http.Cookie, sameSite stri...
function deleteCookie (line 190) | func deleteCookie(w http.ResponseWriter, cookie *http.Cookie) {
function CheckPassword (line 298) | func CheckPassword(realPassword, password, salt string) (err error) {
function GeneratePassword (line 312) | func GeneratePassword(password string) (hash, salt string, err error) {
function BcryptCheckPassword (line 320) | func BcryptCheckPassword(realPassword, password, salt string) (err error) {
function BcryptGeneratePassword (line 325) | func BcryptGeneratePassword(password string) (hash, salt string, err err...
function FriendlyGAuthSecret (line 371) | func FriendlyGAuthSecret(secret string) (out string) {
function GenerateGAuthSecret (line 380) | func GenerateGAuthSecret() (string, error) {
function VerifyGAuthToken (line 383) | func VerifyGAuthToken(secret, token string) (bool, error) {
FILE: common/cache.go
type DataStore (line 13) | type DataStore interface
type DataCache (line 21) | type DataCache interface
FILE: common/common.go
constant Hour (line 31) | Hour int = 60 * 60
constant Day (line 32) | Day = Hour * 24
constant Week (line 33) | Week = Day * 7
constant Month (line 34) | Month = Day * 30
constant Year (line 35) | Year = Day * 365
constant Kilobyte (line 36) | Kilobyte int = 1024
constant Megabyte (line 37) | Megabyte = Kilobyte * 1024
constant Gigabyte (line 38) | Gigabyte = Megabyte * 1024
constant Terabyte (line 39) | Terabyte = Gigabyte * 1024
constant Petabyte (line 40) | Petabyte = Terabyte * 1024
type StringList (line 69) | type StringList
method Contains (line 118) | func (sl StringList) Contains(needle string) bool {
function init (line 111) | func init() {
type dbInits (line 148) | type dbInits
method Run (line 152) | func (inits dbInits) Run() error {
method Add (line 161) | func (inits dbInits) Add(i ...func(acc *qgen.Accumulator) error) {
function StoppedServer (line 166) | func StoppedServer(msg ...interface{}) {
function DebugDetail (line 177) | func DebugDetail(args ...interface{}) {
function DebugDetailf (line 183) | func DebugDetailf(str string, args ...interface{}) {
function DebugLog (line 189) | func DebugLog(args ...interface{}) {
function DebugLogf (line 195) | func DebugLogf(str string, args ...interface{}) {
function Log (line 201) | func Log(args ...interface{}) {
function Logf (line 204) | func Logf(str string, args ...interface{}) {
function Err (line 207) | func Err(args ...interface{}) {
function Count (line 211) | func Count(stmt *sql.Stmt) (count int) {
function Countf (line 218) | func Countf(stmt *sql.Stmt, args ...interface{}) (count int) {
function Createf (line 225) | func Createf(stmt *sql.Stmt, args ...interface{}) (id int, e error) {
function eachall (line 234) | func eachall(stmt *sql.Stmt, f func(r *sql.Rows) error) error {
function inqbuild (line 250) | func inqbuild(ids []int) ([]interface{}, string) {
function inqbuild2 (line 273) | func inqbuild2(count int) string {
function inqbuildstr (line 289) | func inqbuildstr(strs []string) ([]interface{}, string) {
type ConnWatcher (line 314) | type ConnWatcher struct
method StateChange (line 318) | func (cw *ConnWatcher) StateChange(conn net.Conn, state http.ConnState) {
method Count (line 327) | func (cw *ConnWatcher) Count() int {
function EatPanics (line 331) | func EatPanics() {
FILE: common/conversations.go
type ConvoStmts (line 18) | type ConvoStmts struct
function init (line 34) | func init() {
type Conversation (line 55) | type Conversation struct
method Posts (line 64) | func (co *Conversation) Posts(offset, itemsPerPage int) (posts []*Conv...
method PostsCount (line 87) | func (co *Conversation) PostsCount() (count int) {
method Uids (line 91) | func (co *Conversation) Uids() (ids []int, err error) {
method Has (line 107) | func (co *Conversation) Has(uid int) (in bool) {
method Update (line 111) | func (co *Conversation) Update() error {
method Create (line 116) | func (co *Conversation) Create() (int, error) {
function BuildConvoURL (line 126) | func BuildConvoURL(coid int) string {
type ConversationExtra (line 130) | type ConversationExtra struct
type ConversationStore (line 135) | type ConversationStore interface
type DefaultConversationStore (line 145) | type DefaultConversationStore struct
method Get (line 172) | func (s *DefaultConversationStore) Get(id int) (*Conversation, error) {
method GetUser (line 179) | func (s *DefaultConversationStore) GetUser(uid, offset int) (cos []*Co...
method GetUserExtra (line 205) | func (s *DefaultConversationStore) GetUserExtra(uid, offset int) (cos ...
method GetUserCount (line 306) | func (s *DefaultConversationStore) GetUserCount(uid int) (count int) {
method Delete (line 315) | func (s *DefaultConversationStore) Delete(id int) error {
method Create (line 328) | func (s *DefaultConversationStore) Create(content string, createdBy in...
method Count (line 365) | func (s *DefaultConversationStore) Count() (count int) {
function NewDefaultConversationStore (line 157) | func NewDefaultConversationStore(acc *qgen.Accumulator) (*DefaultConvers...
FILE: common/convos_posts.go
type ConvoPostProcessor (line 13) | type ConvoPostProcessor interface
type DefaultConvoPostProcessor (line 18) | type DefaultConvoPostProcessor struct
method OnLoad (line 25) | func (pr *DefaultConvoPostProcessor) OnLoad(co *ConversationPost) (*Co...
method OnSave (line 29) | func (pr *DefaultConvoPostProcessor) OnSave(co *ConversationPost) (*Co...
function NewDefaultConvoPostProcessor (line 21) | func NewDefaultConvoPostProcessor() *DefaultConvoPostProcessor {
type AesConvoPostProcessor (line 33) | type AesConvoPostProcessor struct
method OnLoad (line 40) | func (pr *AesConvoPostProcessor) OnLoad(co *ConversationPost) (*Conver...
method OnSave (line 77) | func (pr *AesConvoPostProcessor) OnSave(co *ConversationPost) (*Conver...
function NewAesConvoPostProcessor (line 36) | func NewAesConvoPostProcessor() *AesConvoPostProcessor {
type ConversationPost (line 101) | type ConversationPost struct
method Fetch (line 110) | func (co *ConversationPost) Fetch() error {
method Update (line 114) | func (co *ConversationPost) Update() error {
method Create (line 124) | func (co *ConversationPost) Create() (int, error) {
method Delete (line 139) | func (co *ConversationPost) Delete() error {
FILE: common/counters/agents.go
type DefaultAgentViewCounter (line 14) | type DefaultAgentViewCounter struct
method Tick (line 30) | func (co *DefaultAgentViewCounter) Tick() error {
method insertChunk (line 41) | func (co *DefaultAgentViewCounter) insertChunk(count int64, agent int)...
method Bump (line 51) | func (co *DefaultAgentViewCounter) Bump(agent int) {
function NewDefaultAgentViewCounter (line 19) | func NewDefaultAgentViewCounter(acc *qgen.Accumulator) (*DefaultAgentVie...
FILE: common/counters/common.go
function SetRouteMapEnum (line 9) | func SetRouteMapEnum(rme map[string]int) {
function SetReverseRouteMapEnum (line 13) | func SetReverseRouteMapEnum(rrme map[int]string) {
function SetAgentMapEnum (line 20) | func SetAgentMapEnum(ame map[string]int) {
function SetReverseAgentMapEnum (line 24) | func SetReverseAgentMapEnum(rame map[int]string) {
function SetOSMapEnum (line 31) | func SetOSMapEnum(osme map[string]int) {
function SetReverseOSMapEnum (line 35) | func SetReverseOSMapEnum(rosme map[int]string) {
type RWMutexCounterBucket (line 39) | type RWMutexCounterBucket struct
type MutexCounterBucket (line 44) | type MutexCounterBucket struct
type MutexCounter64Bucket (line 49) | type MutexCounter64Bucket struct
FILE: common/counters/forums.go
type DefaultForumViewCounter (line 16) | type DefaultForumViewCounter struct
method Tick (line 38) | func (co *DefaultForumViewCounter) Tick() error {
method insertChunk (line 67) | func (co *DefaultForumViewCounter) insertChunk(count, forum int) error {
method Bump (line 76) | func (co *DefaultForumViewCounter) Bump(fid int) {
function NewDefaultForumViewCounter (line 25) | func NewDefaultForumViewCounter() (*DefaultForumViewCounter, error) {
FILE: common/counters/langs.go
type DefaultLangViewCounter (line 102) | type DefaultLangViewCounter struct
method Tick (line 127) | func (co *DefaultLangViewCounter) Tick() error {
method insertChunk (line 138) | func (co *DefaultLangViewCounter) insertChunk(count int64, id int) err...
method Bump (line 151) | func (co *DefaultLangViewCounter) Bump(langCode string) (validCode boo...
method Bump2 (line 170) | func (co *DefaultLangViewCounter) Bump2(id int) {
function NewDefaultLangViewCounter (line 110) | func NewDefaultLangViewCounter(acc *qgen.Accumulator) (*DefaultLangViewC...
FILE: common/counters/memory.go
type DefaultMemoryCounter (line 16) | type DefaultMemoryCounter struct
method Tick (line 58) | func (co *DefaultMemoryCounter) Tick() (e error) {
function NewMemoryCounter (line 29) | func NewMemoryCounter(acc *qgen.Accumulator) (*DefaultMemoryCounter, err...
FILE: common/counters/performance.go
type PerfCounterBucket (line 15) | type PerfCounterBucket struct
type DefaultPerfCounter (line 22) | type DefaultPerfCounter struct
method Tick (line 46) | func (co *DefaultPerfCounter) Tick() error {
method insertChunk (line 73) | func (co *DefaultPerfCounter) insertChunk(low, high, avg int64) error {
method Push (line 85) | func (co *DefaultPerfCounter) Push(dur time.Duration /*,_ bool*/) {
function NewDefaultPerfCounter (line 28) | func NewDefaultPerfCounter(acc *qgen.Accumulator) (*DefaultPerfCounter, ...
FILE: common/counters/posts.go
type DefaultPostCounter (line 14) | type DefaultPostCounter struct
method Tick (line 33) | func (co *DefaultPostCounter) Tick() (err error) {
method Bump (line 52) | func (co *DefaultPostCounter) Bump() {
method insertChunk (line 56) | func (co *DefaultPostCounter) insertChunk(count int64) error {
function NewPostCounter (line 21) | func NewPostCounter() (*DefaultPostCounter, error) {
FILE: common/counters/referrers.go
type ReferrerItem (line 18) | type ReferrerItem struct
type DefaultReferrerTracker (line 24) | type DefaultReferrerTracker struct
method Tick (line 47) | func (ref *DefaultReferrerTracker) Tick() (err error) {
method insertChunk (line 84) | func (ref *DefaultReferrerTracker) insertChunk(referrer string, count ...
method Bump (line 93) | func (ref *DefaultReferrerTracker) Bump(referrer string) {
function NewDefaultReferrerTracker (line 33) | func NewDefaultReferrerTracker() (*DefaultReferrerTracker, error) {
FILE: common/counters/requests.go
type DefaultViewCounter (line 16) | type DefaultViewCounter struct
method Tick (line 35) | func (co *DefaultViewCounter) Tick() (err error) {
method Bump (line 54) | func (co *DefaultViewCounter) Bump() {
method insertChunk (line 58) | func (co *DefaultViewCounter) insertChunk(count int64) error {
function NewGlobalViewCounter (line 23) | func NewGlobalViewCounter(acc *qgen.Accumulator) (*DefaultViewCounter, e...
FILE: common/counters/routes.go
type RVBucket (line 17) | type RVBucket struct
type DefaultRouteViewCounter (line 25) | type DefaultRouteViewCounter struct
method Tick (line 57) | func (co *DefaultRouteViewCounter) Tick() (err error) {
method insertChunk (line 99) | func (co *DefaultRouteViewCounter) insertChunk(count int64, avg, route...
method insert5Chunk (line 106) | func (co *DefaultRouteViewCounter) insert5Chunk(rvs []RVCount) error {
method Bump (line 126) | func (co *DefaultRouteViewCounter) Bump(route int) {
method Bump2 (line 140) | func (co *DefaultRouteViewCounter) Bump2(route int, t time.Time) {
method Bump3 (line 165) | func (co *DefaultRouteViewCounter) Bump3(route int, nano int64) {
function NewDefaultRouteViewCounter (line 31) | func NewDefaultRouteViewCounter(acc *qgen.Accumulator) (*DefaultRouteVie...
type RVCount (line 51) | type RVCount struct
FILE: common/counters/systems.go
type DefaultOSViewCounter (line 14) | type DefaultOSViewCounter struct
method Tick (line 30) | func (co *DefaultOSViewCounter) Tick() error {
method insertChunk (line 40) | func (co *DefaultOSViewCounter) insertChunk(count int64, os int) error {
method Bump (line 50) | func (co *DefaultOSViewCounter) Bump(id int) {
function NewDefaultOSViewCounter (line 19) | func NewDefaultOSViewCounter(acc *qgen.Accumulator) (*DefaultOSViewCount...
FILE: common/counters/topics.go
type DefaultTopicCounter (line 14) | type DefaultTopicCounter struct
method Tick (line 33) | func (co *DefaultTopicCounter) Tick() (e error) {
method Bump (line 52) | func (co *DefaultTopicCounter) Bump() {
method insertChunk (line 56) | func (co *DefaultTopicCounter) insertChunk(count int64) error {
function NewTopicCounter (line 21) | func NewTopicCounter() (*DefaultTopicCounter, error) {
FILE: common/counters/topics_views.go
type DefaultTopicViewCounter (line 19) | type DefaultTopicViewCounter struct
method handleInsertListBuf (line 77) | func (co *DefaultTopicViewCounter) handleInsertListBuf(i, i2 int) error {
method Tick (line 97) | func (co *DefaultTopicViewCounter) Tick() error {
method WeekResetInit (line 142) | func (co *DefaultTopicViewCounter) WeekResetInit() error {
method WeekResetTick (line 169) | func (co *DefaultTopicViewCounter) WeekResetTick() (e error) {
method insertChunk (line 188) | func (co *DefaultTopicViewCounter) insertChunk(count, topicID int) (er...
method Bump (line 228) | func (co *DefaultTopicViewCounter) Bump(topicID int) {
function NewDefaultTopicViewCounter (line 36) | func NewDefaultTopicViewCounter() (*DefaultTopicViewCounter, error) {
type TopicViewInsert (line 67) | type TopicViewInsert struct
type SavedTick (line 72) | type SavedTick struct
FILE: common/disk.go
function DirSize (line 8) | func DirSize(path string) (int, error) {
FILE: common/email.go
function SendActivationEmail (line 13) | func SendActivationEmail(username, email, token string) error {
function SendValidationEmail (line 24) | func SendValidationEmail(username, email, token string) error {
function SendEmail (line 47) | func SendEmail(email, subject, msg string) (err error) {
FILE: common/email_store.go
type Email (line 11) | type Email struct
type EmailStore (line 19) | type EmailStore interface
type DefaultEmailStore (line 28) | type DefaultEmailStore struct
method Get (line 49) | func (s *DefaultEmailStore) Get(user *User, email string) (Email, erro...
method GetEmailsByUser (line 55) | func (s *DefaultEmailStore) GetEmailsByUser(user *User) (emails []Emai...
method Add (line 75) | func (s *DefaultEmailStore) Add(uid int, email, token string) error {
method Delete (line 81) | func (s *DefaultEmailStore) Delete(uid int, email string) error {
method VerifyEmail (line 86) | func (s *DefaultEmailStore) VerifyEmail(email string) error {
function NewDefaultEmailStore (line 36) | func NewDefaultEmailStore(acc *qgen.Accumulator) (*DefaultEmailStore, er...
FILE: common/errors.go
type ErrorItem (line 15) | type ErrorItem struct
type RouteError (line 34) | type RouteError interface
type RouteErrorImpl (line 44) | type RouteErrorImpl struct
method Type (line 52) | func (err *RouteErrorImpl) Type() string {
method Error (line 60) | func (err *RouteErrorImpl) Error() string {
method Cause (line 64) | func (err *RouteErrorImpl) Cause() string {
method JSON (line 72) | func (err *RouteErrorImpl) JSON() bool {
method Handled (line 77) | func (err *RouteErrorImpl) Handled() bool {
method Wrap (line 82) | func (err *RouteErrorImpl) Wrap(userErr string) {
function HandledRouteError (line 87) | func HandledRouteError() RouteError {
function Error (line 91) | func Error(errmsg string) RouteError {
function FromError (line 95) | func FromError(err error) RouteError {
function ErrorJSQ (line 99) | func ErrorJSQ(errmsg string, js bool) RouteError {
function SysError (line 103) | func SysError(errmsg string) RouteError {
function LogError (line 109) | func LogError(err error, extra ...string) {
function LogWarning (line 114) | func LogWarning(err error, extra ...string) {
function errorHeader (line 136) | func errorHeader(w http.ResponseWriter, u *User, title string) *Header {
function InternalError (line 147) | func InternalError(err error, w http.ResponseWriter, r *http.Request) Ro...
function InternalErrorJSQ (line 156) | func InternalErrorJSQ(err error, w http.ResponseWriter, r *http.Request,...
function InternalErrorJS (line 165) | func InternalErrorJS(err error, w http.ResponseWriter, r *http.Request) ...
function DatabaseError (line 173) | func DatabaseError(w http.ResponseWriter, r *http.Request) RouteError {
function InternalErrorXML (line 179) | func InternalErrorXML(err error, w http.ResponseWriter, r *http.Request)...
function SilentInternalErrorXML (line 189) | func SilentInternalErrorXML(err error, w http.ResponseWriter, r *http.Re...
function PreError (line 199) | func PreError(errmsg string, w http.ResponseWriter, r *http.Request) Rou...
function PreErrorJS (line 205) | func PreErrorJS(errmsg string, w http.ResponseWriter, r *http.Request) R...
function PreErrorJSQ (line 211) | func PreErrorJSQ(errmsg string, w http.ResponseWriter, r *http.Request, ...
function LocalError (line 227) | func LocalError(errmsg string, w http.ResponseWriter, r *http.Request, u...
function LocalErrorf (line 231) | func LocalErrorf(errmsg string, w http.ResponseWriter, r *http.Request, ...
function SimpleError (line 235) | func SimpleError(errmsg string, w http.ResponseWriter, r *http.Request, ...
function LocalErrorJSQ (line 246) | func LocalErrorJSQ(errmsg string, w http.ResponseWriter, r *http.Request...
function LocalErrorJS (line 253) | func LocalErrorJS(errmsg string, w http.ResponseWriter, r *http.Request)...
function NoPermissions (line 261) | func NoPermissions(w http.ResponseWriter, r *http.Request, u *User) Rout...
function NoPermissionsJSQ (line 267) | func NoPermissionsJSQ(w http.ResponseWriter, r *http.Request, u *User, j...
function NoPermissionsJS (line 274) | func NoPermissionsJS(w http.ResponseWriter, r *http.Request, u *User) Ro...
function Banned (line 281) | func Banned(w http.ResponseWriter, r *http.Request, u *User) RouteError {
function BannedJSQ (line 289) | func BannedJSQ(w http.ResponseWriter, r *http.Request, user *User, js bo...
function BannedJS (line 296) | func BannedJS(w http.ResponseWriter, r *http.Request, u *User) RouteError {
function LoginRequiredJSQ (line 303) | func LoginRequiredJSQ(w http.ResponseWriter, r *http.Request, u *User, j...
function LoginRequired (line 312) | func LoginRequired(w http.ResponseWriter, r *http.Request, u *User) Rout...
function LoginRequiredJS (line 317) | func LoginRequiredJS(w http.ResponseWriter, r *http.Request, u *User) Ro...
function SecurityError (line 325) | func SecurityError(w http.ResponseWriter, r *http.Request, u *User) Rout...
function MicroNotFound (line 337) | func MicroNotFound(w http.ResponseWriter, r *http.Request) RouteError {
function NotFound (line 347) | func NotFound(w http.ResponseWriter, r *http.Request, h *Header) RouteEr...
function NotFoundJS (line 352) | func NotFoundJS(w http.ResponseWriter, r *http.Request) RouteError {
function NotFoundJSQ (line 358) | func NotFoundJSQ(w http.ResponseWriter, r *http.Request, h *Header, js b...
function CustomError (line 369) | func CustomError(errmsg string, errcode int, errtitle string, w http.Res...
function CustomErrorJSQ (line 384) | func CustomErrorJSQ(errmsg string, errcode int, errtitle string, w http....
function CustomErrorJS (line 392) | func CustomErrorJS(errmsg string, errcode int, w http.ResponseWriter, r ...
function writeJsonError (line 399) | func writeJsonError(errmsg string, w http.ResponseWriter) {
function handleErrorTemplate (line 403) | func handleErrorTemplate(w http.ResponseWriter, r *http.Request, pi Erro...
FILE: common/extend.go
type PluginList (line 23) | type PluginList
method Add (line 28) | func (l PluginList) Add(pl *Plugin) {
method Load (line 444) | func (l PluginList) Load() error {
function buildPlugin (line 33) | func buildPlugin(pl *Plugin) {
type HookTable (line 51) | type HookTable struct
method HookNoRet (line 166) | func (t *HookTable) HookNoRet(name string, data interface{}) {
method HookSkip (line 173) | func (t *HookTable) HookSkip(name string, data interface{}) (skip bool) {
method Vhook (line 184) | func (t *HookTable) Vhook(name string, data ...interface{}) interface{} {
method VhookNoRet (line 191) | func (t *HookTable) VhookNoRet(name string, data ...interface{}) {
method VhookNeedHook (line 198) | func (t *HookTable) VhookNeedHook(name string, data ...interface{}) (r...
method VhookSkippable (line 206) | func (t *HookTable) VhookSkippable(name string, data ...interface{}) (...
method Sshook (line 230) | func (t *HookTable) Sshook(name, data string) string {
function init (line 64) | func init() {
function RebuildHookTable (line 142) | func RebuildHookTable() {
function unsafeRebuildHookTable (line 148) | func unsafeRebuildHookTable() {
function GetHookTable (line 154) | func GetHookTable() *HookTable {
type Message (line 251) | type Message interface
type PageInt (line 259) | type PageInt interface
type Plugin (line 334) | type Plugin struct
method BypassActive (line 362) | func (pl *Plugin) BypassActive() (active bool, err error) {
method InDatabase (line 370) | func (pl *Plugin) InDatabase() (exists bool, err error) {
method SetActive (line 380) | func (pl *Plugin) SetActive(active bool) (err error) {
method SetInstalled (line 389) | func (pl *Plugin) SetInstalled(installed bool) (err error) {
method AddToDatabase (line 400) | func (pl *Plugin) AddToDatabase(active, installed bool) (err error) {
method AddHook (line 473) | func (pl *Plugin) AddHook(name string, hInt interface{}) {
method RemoveHook (line 529) | func (pl *Plugin) RemoveHook(name string, hInt interface{}) {
type PluginMetaData (line 357) | type PluginMetaData struct
type ExtendStmts (line 409) | type ExtendStmts struct
function init (line 420) | func init() {
function InitExtend (line 435) | func InitExtend() error {
function InitPlugins (line 603) | func InitPlugins() {
function RunTaskHook (line 621) | func RunTaskHook(name string) error {
function RunPreRenderHook (line 630) | func RunPreRenderHook(name string, w http.ResponseWriter, r *http.Reques...
FILE: common/files.go
type SFileList (line 34) | type SFileList struct
method JSTmplInit (line 67) | func (l SFileList) JSTmplInit() error {
method Init (line 322) | func (l SFileList) Init() error {
method Add (line 386) | func (l SFileList) Add(path, prefix string) error {
method Get (line 444) | func (l SFileList) Get(path string) (file *SFile, exists bool) {
method GetShort (line 452) | func (l SFileList) GetShort(name string) (file *SFile, exists bool) {
method Set (line 459) | func (l SFileList) Set(name string, data *SFile) {
type SFile (line 40) | type SFile struct
type CSSData (line 63) | type CSSData struct
function CompressBytesGzip (line 473) | func CompressBytesGzip(in []byte) (b []byte, err error) {
function CompressBytesBrotli (line 498) | func CompressBytesBrotli(in []byte) ([]byte, error) {
FILE: common/forum.go
type ForumAdmin (line 15) | type ForumAdmin struct
type Forum (line 25) | type Forum struct
method Copy (line 72) | func (f *Forum) Copy() (fcopy Forum) {
method Update (line 78) | func (f *Forum) Update(name, desc string, active bool, preset string) ...
method SetPreset (line 98) | func (f *Forum) SetPreset(preset string, gid int) error {
method SetPerms (line 107) | func (f *Forum) SetPerms(fperms *ForumPerms, preset string, gid int) (...
type ForumSimple (line 47) | type ForumSimple struct
type ForumStmts (line 54) | type ForumStmts struct
function init (line 61) | func init() {
type SortForum (line 133) | type SortForum
method Len (line 135) | func (sf SortForum) Len() int {
method Swap (line 138) | func (sf SortForum) Swap(i, j int) {
method Less (line 151) | func (sf SortForum) Less(i, j int) bool {
function BlankForum (line 161) | func BlankForum(fid int, link, name, desc string, active bool, preset st...
function BuildForumURL (line 165) | func BuildForumURL(slug string, fid int) string {
function GetForumURLPrefix (line 172) | func GetForumURLPrefix() string {
FILE: common/forum_actions.go
constant ForumActionDelete (line 16) | ForumActionDelete = iota
constant ForumActionLock (line 17) | ForumActionLock
constant ForumActionUnlock (line 18) | ForumActionUnlock
constant ForumActionMove (line 19) | ForumActionMove
function ConvStringToAct (line 22) | func ConvStringToAct(s string) int {
function ConvActToString (line 35) | func ConvActToString(a int) string {
type ForumActionStmts (line 51) | type ForumActionStmts struct
type ForumAction (line 60) | type ForumAction struct
method Run (line 86) | func (a *ForumAction) Run() error {
method runQ (line 100) | func (a *ForumAction) runQ(stmt *sql.Stmt, days int, f func(t *Topic) ...
method runDaysAfterTopicCreation (line 119) | func (a *ForumAction) runDaysAfterTopicCreation() (e error) {
method runDaysAfterTopicLastReply (line 154) | func (a *ForumAction) runDaysAfterTopicLastReply() (e error) {
method TopicCreation (line 182) | func (a *ForumAction) TopicCreation(tid int) error {
function init (line 70) | func init() {
type ForumActionStoreInt (line 189) | type ForumActionStoreInt interface
type DefaultForumActionStore (line 204) | type DefaultForumActionStore struct
method DailyTick (line 234) | func (s *DefaultForumActionStore) DailyTick() error {
method Get (line 247) | func (s *DefaultForumActionStore) Get(id int) (*ForumAction, error) {
method GetInForum (line 255) | func (s *DefaultForumActionStore) GetInForum(fid int) (fas []*ForumAct...
method GetAll (line 273) | func (s *DefaultForumActionStore) GetAll() (fas []*ForumAction, e erro...
method GetNewTopicActions (line 291) | func (s *DefaultForumActionStore) GetNewTopicActions(fid int) (fas []*...
method Add (line 309) | func (s *DefaultForumActionStore) Add(fa *ForumAction) (int, error) {
method Delete (line 318) | func (s *DefaultForumActionStore) Delete(id int) error {
method Exists (line 323) | func (s *DefaultForumActionStore) Exists(id int) bool {
method Count (line 331) | func (s *DefaultForumActionStore) Count() (count int) {
method CountInForum (line 339) | func (s *DefaultForumActionStore) CountInForum(fid int) (count int) {
function NewDefaultForumActionStore (line 217) | func NewDefaultForumActionStore(acc *qgen.Accumulator) (*DefaultForumAct...
FILE: common/forum_perms.go
type ForumPerms (line 28) | type ForumPerms struct
function PresetToPermmap (line 49) | func PresetToPermmap(preset string) (out map[string]*ForumPerms) {
function PermmapToQuery (line 91) | func PermmapToQuery(permmap map[string]*ForumPerms, fid int) error {
function ReplaceForumPermsForGroup (line 180) | func ReplaceForumPermsForGroup(gid int, presetSet map[int]string, permSe...
function ReplaceForumPermsForGroupTx (line 195) | func ReplaceForumPermsForGroupTx(tx *sql.Tx, gid int, presetSets map[int...
function ForumPermsToGroupForumPreset (line 225) | func ForumPermsToGroupForumPreset(fp *ForumPerms) string {
function GroupForumPresetToForumPerms (line 253) | func GroupForumPresetToForumPerms(preset string) (fperms *ForumPerms, ch...
function BlankForumPerms (line 269) | func BlankForumPerms() *ForumPerms {
function ReadWriteForumPerms (line 273) | func ReadWriteForumPerms() *ForumPerms {
function ReadReplyForumPerms (line 284) | func ReadReplyForumPerms() *ForumPerms {
function ReadForumPerms (line 294) | func ReadForumPerms() *ForumPerms {
function AllForumPerms (line 303) | func AllForumPerms() *ForumPerms {
FILE: common/forum_perms_store.go
type ForumPermsStore (line 13) | type ForumPermsStore interface
type ForumPermsCache (line 22) | type ForumPermsCache interface
type MemoryForumPermsStore (line 25) | type MemoryForumPermsStore struct
method Init (line 47) | func (s *MemoryForumPermsStore) Init() error {
method ReloadAll (line 53) | func (s *MemoryForumPermsStore) ReloadAll() error {
method parseForumPerm (line 71) | func (s *MemoryForumPermsStore) parseForumPerm(perms []byte) (pperms *...
method Reload (line 80) | func (s *MemoryForumPermsStore) Reload(fid int) error {
method reload (line 93) | func (s *MemoryForumPermsStore) reload(fid int) error {
method recalcCanSeeAll (line 133) | func (s *MemoryForumPermsStore) recalcCanSeeAll() error {
method GetAllMap (line 205) | func (s *MemoryForumPermsStore) GetAllMap() (bigMap map[int]map[int]*F...
method Get (line 224) | func (s *MemoryForumPermsStore) Get(fid, gid int) (fp *ForumPerms, err...
method GetCopy (line 249) | func (s *MemoryForumPermsStore) GetCopy(fid, gid int) (fp ForumPerms, ...
function NewMemoryForumPermsStore (line 35) | func NewMemoryForumPermsStore() (*MemoryForumPermsStore, error) {
FILE: common/forum_store.go
type ForumStore (line 29) | type ForumStore interface
type ForumCache (line 56) | type ForumCache interface
type MemoryForumStore (line 64) | type MemoryForumStore struct
method LoadForums (line 104) | func (s *MemoryForumStore) LoadForums() error {
method rebuildView (line 148) | func (s *MemoryForumStore) rebuildView() {
method Each (line 163) | func (s *MemoryForumStore) Each(h func(*Forum) error) (err error) {
method DirtyGet (line 174) | func (s *MemoryForumStore) DirtyGet(id int) *Forum {
method CacheGet (line 182) | func (s *MemoryForumStore) CacheGet(id int) (*Forum, error) {
method Get (line 190) | func (s *MemoryForumStore) Get(id int) (*Forum, error) {
method BypassGet (line 208) | func (s *MemoryForumStore) BypassGet(id int) (*Forum, error) {
method BulkGetCopy (line 229) | func (s *MemoryForumStore) BulkGetCopy(ids []int) (forums []Forum, err...
method Reload (line 241) | func (s *MemoryForumStore) Reload(id int) error {
method CacheSet (line 250) | func (s *MemoryForumStore) CacheSet(f *Forum) error {
method GetAll (line 257) | func (s *MemoryForumStore) GetAll() (forumView []*Forum, err error) {
method GetAllIDs (line 267) | func (s *MemoryForumStore) GetAllIDs() (ids []int, err error) {
method GetAllVisible (line 276) | func (s *MemoryForumStore) GetAllVisible() (forumView []*Forum, err er...
method GetAllVisibleIDs (line 281) | func (s *MemoryForumStore) GetAllVisibleIDs() ([]int, error) {
method Exists (line 299) | func (s *MemoryForumStore) Exists(id int) bool {
method CacheDelete (line 308) | func (s *MemoryForumStore) CacheDelete(id int) {
method Delete (line 314) | func (s *MemoryForumStore) Delete(id int) error {
method AddTopic (line 323) | func (s *MemoryForumStore) AddTopic(tid, uid, fid int) error {
method RefreshTopic (line 336) | func (s *MemoryForumStore) RefreshTopic(fid int) (err error) {
method RemoveTopic (line 368) | func (s *MemoryForumStore) RemoveTopic(fid int) error {
method RemoveTopics (line 375) | func (s *MemoryForumStore) RemoveTopics(fid, count int) error {
method UpdateLastTopic (line 385) | func (s *MemoryForumStore) UpdateLastTopic(tid, uid, fid int) error {
method Create (line 394) | func (s *MemoryForumStore) Create(name, desc string, active bool, pres...
method UpdateOrder (line 422) | func (s *MemoryForumStore) UpdateOrder(updateMap map[int]int) error {
method Length (line 434) | func (s *MemoryForumStore) Length() (len int) {
method Count (line 444) | func (s *MemoryForumStore) Count() (count int) {
function NewMemoryForumStore (line 81) | func NewMemoryForumStore() (*MemoryForumStore, error) {
FILE: common/gauth/authenticator.go
function prefix0 (line 18) | func prefix0(otp string) string {
function GetHOTPToken (line 28) | func GetHOTPToken(secret string, interval int64) (string, error) {
function GetTOTPToken (line 63) | func GetTOTPToken(secret string) (string, error) {
FILE: common/group.go
type GroupAdmin (line 12) | type GroupAdmin struct
type Group (line 22) | type Group struct
method ChangeRank (line 59) | func (g *Group) ChangeRank(isAdmin, isMod, isBanned bool) (err error) {
method Update (line 68) | func (g *Group) Update(name, tag string) (err error) {
method UpdatePerms (line 78) | func (g *Group) UpdatePerms(perms map[string]bool) (err error) {
method Copy (line 91) | func (g *Group) Copy() Group {
method CopyPtr (line 95) | func (g *Group) CopyPtr() (co *Group) {
type GroupStmts (line 37) | type GroupStmts struct
function init (line 45) | func init() {
type SortGroup (line 103) | type SortGroup
method Len (line 105) | func (sg SortGroup) Len() int {
method Swap (line 108) | func (sg SortGroup) Swap(i, j int) {
method Less (line 111) | func (sg SortGroup) Less(i, j int) bool {
FILE: common/group_store.go
type GroupStore (line 19) | type GroupStore interface
type GroupCache (line 32) | type GroupCache interface
type MemoryGroupStore (line 39) | type MemoryGroupStore struct
method LoadGroups (line 64) | func (s *MemoryGroupStore) LoadGroups() error {
method dirtyGetUnsafe (line 101) | func (s *MemoryGroupStore) dirtyGetUnsafe(id int) *Group {
method DirtyGet (line 110) | func (s *MemoryGroupStore) DirtyGet(id int) *Group {
method Get (line 121) | func (s *MemoryGroupStore) Get(id int) (*Group, error) {
method GetCopy (line 132) | func (s *MemoryGroupStore) GetCopy(id int) (Group, error) {
method Reload (line 142) | func (s *MemoryGroupStore) Reload(id int) error {
method initGroup (line 166) | func (s *MemoryGroupStore) initGroup(g *Group) error {
method SetCanSee (line 196) | func (s *MemoryGroupStore) SetCanSee(gid int, canSee []int) error {
method CacheSet (line 211) | func (s *MemoryGroupStore) CacheSet(g *Group) error {
method Exists (line 219) | func (s *MemoryGroupStore) Exists(id int) bool {
method Create (line 228) | func (s *MemoryGroupStore) Create(name, tag string, isAdmin, isMod, is...
method CacheAdd (line 306) | func (s *MemoryGroupStore) CacheAdd(g *Group) error {
method GetAll (line 314) | func (s *MemoryGroupStore) GetAll() (results []*Group, err error) {
method GetAllMap (line 327) | func (s *MemoryGroupStore) GetAllMap() (map[int]*Group, error) {
method GetRange (line 335) | func (s *MemoryGroupStore) GetRange(lower, higher int) (groups []*Grou...
method Length (line 363) | func (s *MemoryGroupStore) Length() int {
method Count (line 369) | func (s *MemoryGroupStore) Count() (count int) {
function NewMemoryGroupStore (line 50) | func NewMemoryGroupStore() (*MemoryGroupStore, error) {
FILE: common/ip_search.go
type IPSearcher (line 11) | type IPSearcher interface
type DefaultIPSearcher (line 15) | type DefaultIPSearcher struct
method Lookup (line 37) | func (s *DefaultIPSearcher) Lookup(ip string) (uids []int, e error) {
function NewDefaultIPSearcher (line 23) | func NewDefaultIPSearcher() (*DefaultIPSearcher, error) {
FILE: common/likes.go
type LikeStore (line 11) | type LikeStore interface
type DefaultLikeStore (line 18) | type DefaultLikeStore struct
method BulkExists (line 33) | func (s *DefaultLikeStore) BulkExists(ids []int, sentBy int, targetTyp...
method BulkExistsFunc (line 61) | func (s *DefaultLikeStore) BulkExistsFunc(ids []int, sentBy int, targe...
method Delete (line 90) | func (s *DefaultLikeStore) Delete(targetID int, targetType string) err...
method Count (line 97) | func (s *DefaultLikeStore) Count() (count int) {
function NewDefaultLikeStore (line 24) | func NewDefaultLikeStore(acc *qgen.Accumulator) (*DefaultLikeStore, erro...
FILE: common/menu_item_store.go
type DefaultMenuItemStore (line 5) | type DefaultMenuItemStore struct
method Add (line 16) | func (s *DefaultMenuItemStore) Add(i MenuItem) {
method Get (line 22) | func (s *DefaultMenuItemStore) Get(id int) (MenuItem, error) {
function NewDefaultMenuItemStore (line 10) | func NewDefaultMenuItemStore() *DefaultMenuItemStore {
FILE: common/menu_store.go
type DefaultMenuStore (line 13) | type DefaultMenuStore struct
method GetAllMap (line 26) | func (s *DefaultMenuStore) GetAllMap() (out map[int]*MenuListHolder) {
method Get (line 34) | func (s *DefaultMenuStore) Get(mid int) (*MenuListHolder, error) {
method Items (line 42) | func (s *DefaultMenuStore) Items(mid int) (mlist MenuItemList, err err...
method Load (line 56) | func (s *DefaultMenuStore) Load(mid int) error {
method ItemStore (line 73) | func (s *DefaultMenuStore) ItemStore() *DefaultMenuItemStore {
function NewDefaultMenuStore (line 18) | func NewDefaultMenuStore() *DefaultMenuStore {
FILE: common/menus.go
type MenuItemList (line 17) | type MenuItemList
type MenuListHolder (line 19) | type MenuListHolder struct
method LoadTmpl (line 102) | func (h *MenuListHolder) LoadTmpl(name string) (t MenuTmpl, e error) {
method UpdateOrder (line 111) | func (h *MenuListHolder) UpdateOrder(updateMap map[int]int) error {
method LoadTmpls (line 122) | func (h *MenuListHolder) LoadTmpls() (tmpls map[string]MenuTmpl, e err...
method Preparse (line 141) | func (h *MenuListHolder) Preparse() error {
method Parse (line 269) | func (h *MenuListHolder) Parse(name string, tmplData []byte) (menuTmpl...
method Scan (line 330) | func (h *MenuListHolder) Scan(tmpls map[string]MenuTmpl, showItem func...
method ScanItem (line 345) | func (h *MenuListHolder) ScanItem(tmpls map[string]MenuTmpl, mitem Men...
method Build (line 421) | func (h *MenuListHolder) Build(w io.Writer, user *User, pathPrefix str...
type menuPath (line 25) | type menuPath struct
type menuTmpl (line 30) | type menuTmpl struct
type MenuItem (line 36) | type MenuItem struct
method Commit (line 79) | func (i MenuItem) Commit() error {
method Create (line 85) | func (i MenuItem) Create() (int, error) {
method Delete (line 96) | func (i MenuItem) Delete() error {
type MenuItemStmts (line 57) | type MenuItemStmts struct
function init (line 66) | func init() {
function nextCharIs (line 171) | func nextCharIs(tmplData []byte, i int, expects byte) bool {
function peekNextChar (line 178) | func peekNextChar(tmplData []byte, i int) byte {
function skipUntilIfExists (line 185) | func skipUntilIfExists(tmplData []byte, i int, expects byte) (newI int, ...
function skipUntilIfExistsOrLine (line 195) | func skipUntilIfExistsOrLine(tmplData []byte, i int, expects byte) (newI...
function skipUntilCharsExist (line 207) | func skipUntilCharsExist(tmplData []byte, i int, expects []byte) (newI i...
function skipAllUntilCharsExist (line 221) | func skipAllUntilCharsExist(tmplData []byte, i int, expects []byte) (new...
type menuRenderItem (line 247) | type menuRenderItem struct
type MenuTmpl (line 252) | type MenuTmpl struct
function menuDumpSlice (line 259) | func menuDumpSlice(outerSlice [][]byte) {
FILE: common/meta/meta_store.go
type MetaStore (line 10) | type MetaStore interface
type DefaultMetaStore (line 17) | type DefaultMetaStore struct
method Get (line 33) | func (s *DefaultMetaStore) Get(name string) (val string, e error) {
method setVal (line 39) | func (s *DefaultMetaStore) setVal(name string, val interface{}) error {
method Set (line 51) | func (s *DefaultMetaStore) Set(name, val string) error {
method SetInt (line 55) | func (s *DefaultMetaStore) SetInt(name string, val int) error {
method SetInt64 (line 59) | func (s *DefaultMetaStore) SetInt64(name string, val int64) error {
function NewDefaultMetaStore (line 23) | func NewDefaultMetaStore(acc *qgen.Accumulator) (*DefaultMetaStore, erro...
FILE: common/mfa_store.go
type MFAItemStmts (line 14) | type MFAItemStmts struct
function init (line 21) | func init() {
type MFAItem (line 31) | type MFAItem struct
method BurnScratch (line 37) | func (i *MFAItem) BurnScratch(index int) error {
method Delete (line 51) | func (i *MFAItem) Delete() error {
function mfaCreateScratch (line 56) | func mfaCreateScratch() (string, error) {
type MFAStore (line 61) | type MFAStore interface
type SQLMFAStore (line 66) | type SQLMFAStore struct
method Get (line 79) | func (s *SQLMFAStore) Get(id int) (*MFAItem, error) {
method Create (line 87) | func (s *SQLMFAStore) Create(secret string, uid int) (err error) {
function NewSQLMFAStore (line 71) | func NewSQLMFAStore(acc *qgen.Accumulator) (*SQLMFAStore, error) {
FILE: common/misc_logs.go
type RegLogItem (line 13) | type RegLogItem struct
method Commit (line 44) | func (l *RegLogItem) Commit() error {
method Create (line 49) | func (l *RegLogItem) Create() (id int, e error) {
type RegLogStmts (line 23) | type RegLogStmts struct
function init (line 30) | func init() {
type RegLogStore (line 55) | type RegLogStore interface
type SQLRegLogStore (line 63) | type SQLRegLogStore struct
method Count (line 82) | func (s *SQLRegLogStore) Count() (count int) {
method GetOffset (line 86) | func (s *SQLRegLogStore) GetOffset(offset, perPage int) (logs []RegLog...
method DeleteOlderThanDays (line 106) | func (s *SQLRegLogStore) DeleteOlderThanDays(days int) error {
method Purge (line 112) | func (s *SQLRegLogStore) Purge() error {
function NewRegLogStore (line 71) | func NewRegLogStore(acc *qgen.Accumulator) (*SQLRegLogStore, error) {
type LoginLogItem (line 117) | type LoginLogItem struct
method Commit (line 145) | func (l *LoginLogItem) Commit() error {
method Create (line 150) | func (l *LoginLogItem) Create() (id int, e error) {
type LoginLogStmts (line 125) | type LoginLogStmts struct
function init (line 132) | func init() {
type LoginLogStore (line 160) | type LoginLogStore interface
type SQLLoginLogStore (line 169) | type SQLLoginLogStore struct
method Count (line 190) | func (s *SQLLoginLogStore) Count() (count int) {
method CountUser (line 194) | func (s *SQLLoginLogStore) CountUser(uid int) (count int) {
method GetOffset (line 198) | func (s *SQLLoginLogStore) GetOffset(uid, offset, perPage int) (logs [...
method DeleteOlderThanDays (line 218) | func (s *SQLLoginLogStore) DeleteOlderThanDays(days int) error {
method Purge (line 224) | func (s *SQLLoginLogStore) Purge() error {
function NewLoginLogStore (line 178) | func NewLoginLogStore(acc *qgen.Accumulator) (*SQLLoginLogStore, error) {
FILE: common/module_ottojs.go
type OttoPluginLang (line 15) | type OttoPluginLang struct
method Init (line 28) | func (js *OttoPluginLang) Init() (err error) {
method GetName (line 34) | func (js *OttoPluginLang) GetName() string {
method GetExts (line 38) | func (js *OttoPluginLang) GetExts() []string {
method AddPlugin (line 42) | func (js *OttoPluginLang) AddPlugin(meta PluginMeta) (plugin *Plugin, ...
function init (line 21) | func init() {
FILE: common/no_websockets.go
type WSHub (line 14) | type WSHub struct
method guestCount (line 16) | func (_ *WSHub) guestCount() int { return 0 }
method userCount (line 18) | func (_ *WSHub) userCount() int { return 0 }
method broadcastMessage (line 20) | func (hub *WSHub) broadcastMessage(_ string) error { return nil }
method pushMessage (line 22) | func (hub *WSHub) pushMessage(_ int, _ string) error {
method pushAlert (line 26) | func (hub *WSHub) pushAlert(_ int, _ int, _ string, _ string, _ int, _...
method pushAlerts (line 30) | func (hub *WSHub) pushAlerts(_ []int, _ int, _ string, _ string, _ int...
function RouteWebsockets (line 34) | func RouteWebsockets(_ http.ResponseWriter, _ *http.Request, _ User) {}
FILE: common/null_reply_cache.go
type NullReplyCache (line 4) | type NullReplyCache struct
method Get (line 13) | func (c *NullReplyCache) Get(id int) (*Reply, error) {
method GetUnsafe (line 16) | func (c *NullReplyCache) GetUnsafe(id int) (*Reply, error) {
method BulkGet (line 19) | func (c *NullReplyCache) BulkGet(ids []int) (list []*Reply) {
method Set (line 22) | func (c *NullReplyCache) Set(_ *Reply) error {
method Add (line 25) | func (c *NullReplyCache) Add(_ *Reply) error {
method AddUnsafe (line 28) | func (c *NullReplyCache) AddUnsafe(_ *Reply) error {
method Remove (line 31) | func (c *NullReplyCache) Remove(id int) error {
method RemoveUnsafe (line 34) | func (c *NullReplyCache) RemoveUnsafe(id int) error {
method Flush (line 37) | func (c *NullReplyCache) Flush() {
method Length (line 39) | func (c *NullReplyCache) Length() int {
method SetCapacity (line 42) | func (c *NullReplyCache) SetCapacity(_ int) {
method GetCapacity (line 44) | func (c *NullReplyCache) GetCapacity() int {
function NewNullReplyCache (line 8) | func NewNullReplyCache() *NullReplyCache {
FILE: common/null_topic_cache.go
type NullTopicCache (line 4) | type NullTopicCache struct
method Get (line 13) | func (c *NullTopicCache) Get(id int) (*Topic, error) {
method GetUnsafe (line 16) | func (c *NullTopicCache) GetUnsafe(id int) (*Topic, error) {
method BulkGet (line 19) | func (c *NullTopicCache) BulkGet(ids []int) (list []*Topic) {
method Set (line 22) | func (c *NullTopicCache) Set(_ *Topic) error {
method Add (line 25) | func (c *NullTopicCache) Add(_ *Topic) error {
method AddUnsafe (line 28) | func (c *NullTopicCache) AddUnsafe(_ *Topic) error {
method Remove (line 31) | func (c *NullTopicCache) Remove(id int) error {
method RemoveMany (line 34) | func (c *NullTopicCache) RemoveMany(ids []int) error {
method RemoveUnsafe (line 37) | func (c *NullTopicCache) RemoveUnsafe(id int) error {
method Flush (line 40) | func (c *NullTopicCache) Flush() {
method Length (line 42) | func (c *NullTopicCache) Length() int {
method SetCapacity (line 45) | func (c *NullTopicCache) SetCapacity(_ int) {
method GetCapacity (line 47) | func (c *NullTopicCache) GetCapacity() int {
function NewNullTopicCache (line 8) | func NewNullTopicCache() *NullTopicCache {
FILE: common/null_user_cache.go
type NullUserCache (line 4) | type NullUserCache struct
method DeallocOverflow (line 13) | func (c *NullUserCache) DeallocOverflow(evictPriority bool) (evicted i...
method Get (line 16) | func (c *NullUserCache) Get(id int) (*User, error) {
method Getn (line 20) | func (c *NullUserCache) Getn(id int) *User {
method BulkGet (line 23) | func (c *NullUserCache) BulkGet(ids []int) (list []*User) {
method GetUnsafe (line 26) | func (c *NullUserCache) GetUnsafe(id int) (*User, error) {
method Set (line 29) | func (c *NullUserCache) Set(_ *User) error {
method Add (line 32) | func (c *NullUserCache) Add(_ *User) error {
method AddUnsafe (line 35) | func (c *NullUserCache) AddUnsafe(_ *User) error {
method Remove (line 38) | func (c *NullUserCache) Remove(id int) error {
method RemoveUnsafe (line 41) | func (c *NullUserCache) RemoveUnsafe(id int) error {
method BulkRemove (line 44) | func (c *NullUserCache) BulkRemove(ids []int) {}
method Flush (line 45) | func (c *NullUserCache) Flush() {
method Length (line 47) | func (c *NullUserCache) Length() int {
method SetCapacity (line 50) | func (c *NullUserCache) SetCapacity(_ int) {
method GetCapacity (line 52) | func (c *NullUserCache) GetCapacity() int {
function NewNullUserCache (line 8) | func NewNullUserCache() *NullUserCache {
FILE: common/page_store.go
type CustomPageStmts (line 11) | type CustomPageStmts struct
function init (line 18) | func init() {
type CustomPage (line 28) | type CustomPage struct
method AddAllowedGroup (line 41) | func (p *CustomPage) AddAllowedGroup(gid int) {
method getRawAllowedGroups (line 45) | func (p *CustomPage) getRawAllowedGroups() (rawAllowedGroups string) {
method Commit (line 55) | func (p *CustomPage) Commit() error {
method Create (line 61) | func (p *CustomPage) Create() (int, error) {
function BlankCustomPage (line 37) | func BlankCustomPage() *CustomPage {
type PageStore (line 73) | type PageStore interface
type DefaultPageStore (line 83) | type DefaultPageStore struct
method Count (line 103) | func (s *DefaultPageStore) Count() (count int) {
method parseAllowedGroups (line 111) | func (s *DefaultPageStore) parseAllowedGroups(raw string, page *Custom...
method Get (line 125) | func (s *DefaultPageStore) Get(id int) (*CustomPage, error) {
method GetByName (line 135) | func (s *DefaultPageStore) GetByName(name string) (*CustomPage, error) {
method GetOffset (line 145) | func (s *DefaultPageStore) GetOffset(offset, perPage int) (pages []*Cu...
method Reload (line 169) | func (s *DefaultPageStore) Reload(id int) error {
method Delete (line 173) | func (s *DefaultPageStore) Delete(id int) error {
function NewDefaultPageStore (line 91) | func NewDefaultPageStore(acc *qgen.Accumulator) (*DefaultPageStore, erro...
FILE: common/pages.go
type Header (line 20) | type Header struct
method getScript (line 61) | func (h *Header) getScript(name string) HScript {
method AddScript (line 72) | func (h *Header) AddScript(name string) {
method AddPreScriptAsync (line 77) | func (h *Header) AddPreScriptAsync(name string) {
method AddScriptAsync (line 81) | func (h *Header) AddScriptAsync(name string) {
method AddSheet (line 89) | func (h *Header) AddSheet(name string) {
method AddXRes (line 94) | func (h *Header) AddXRes(names ...string) {
method AddNotice (line 113) | func (h *Header) AddNotice(name string) {
type HScript (line 56) | type HScript struct
type HeaderLite (line 118) | type HeaderLite struct
type PageWidgets (line 125) | type PageWidgets struct
type ExtData (line 132) | type ExtData struct
type Page (line 137) | type Page struct
type SimplePage (line 143) | type SimplePage struct
type ErrorPage (line 147) | type ErrorPage struct
type Paginator (line 152) | type Paginator struct
type PaginatorMod (line 158) | type PaginatorMod struct
type CustomPagePage (line 165) | type CustomPagePage struct
type TopicCEditPost (line 170) | type TopicCEditPost struct
type TopicCAttachItem (line 175) | type TopicCAttachItem struct
type TopicCPollInput (line 181) | type TopicCPollInput struct
type TopicPage (line 186) | type TopicPage struct
type TopicListSort (line 195) | type TopicListSort struct
type QuickTools (line 200) | type QuickTools struct
type TopicListPage (line 206) | type TopicListPage struct
type ForumPage (line 217) | type ForumPage struct
type ForumsPage (line 226) | type ForumsPage struct
type ProfilePage (line 231) | type ProfilePage struct
type CreateTopicPage (line 243) | type CreateTopicPage struct
type IPSearchPage (line 249) | type IPSearchPage struct
type RegisterVerifyImageGridImage (line 256) | type RegisterVerifyImageGridImage struct
type RegisterVerifyImageGrid (line 259) | type RegisterVerifyImageGrid struct
type RegisterVerify (line 263) | type RegisterVerify struct
type RegisterPage (line 269) | type RegisterPage struct
type Account (line 276) | type Account struct
type EmailListPage (line 283) | type EmailListPage struct
type AccountLoginsPage (line 288) | type AccountLoginsPage struct
type AccountBlocksPage (line 294) | type AccountBlocksPage struct
type AccountPrivacyPage (line 300) | type AccountPrivacyPage struct
type AccountDashPage (line 307) | type AccountDashPage struct
type LevelListItem (line 316) | type LevelListItem struct
type LevelListPage (line 323) | type LevelListPage struct
type ResetPage (line 328) | type ResetPage struct
type ConvoListRow (line 335) | type ConvoListRow struct
type ConvoListPage (line 341) | type ConvoListPage struct
type ConvoViewRow (line 347) | type ConvoViewRow struct
type ConvoViewPage (line 356) | type ConvoViewPage struct
type ConvoCreatePage (line 365) | type ConvoCreatePage struct
type Panel (line 371) | type Panel struct
type PanelAnalytics (line 378) | type PanelAnalytics struct
type PanelAnalyticsStd (line 384) | type PanelAnalyticsStd struct
type PanelAnalyticsStdUnit (line 391) | type PanelAnalyticsStdUnit struct
type PanelAnalyticsActiveMemory (line 398) | type PanelAnalyticsActiveMemory struct
type PanelAnalyticsPerf (line 406) | type PanelAnalyticsPerf struct
type PanelStats (line 415) | type PanelStats struct
type BasePanelPage (line 425) | type BasePanelPage struct
type PanelPage (line 432) | type PanelPage struct
type GridElement (line 438) | type GridElement struct
type DashGrids (line 448) | type DashGrids struct
type PanelDashboardPage (line 452) | type PanelDashboardPage struct
type PanelSetting (line 457) | type PanelSetting struct
type PanelSettingPage (line 461) | type PanelSettingPage struct
type PanelUserEditPage (line 467) | type PanelUserEditPage struct
type PanelCustomPagesPage (line 474) | type PanelCustomPagesPage struct
type PanelCustomPageEditPage (line 479) | type PanelCustomPageEditPage struct
type PanelTimeGraph (line 488) | type PanelTimeGraph struct
type PanelAnalyticsItem (line 494) | type PanelAnalyticsItem struct
type PanelAnalyticsItemUnit (line 498) | type PanelAnalyticsItemUnit struct
type PanelAnalyticsPage (line 504) | type PanelAnalyticsPage struct
type PanelAnalyticsRoutesItem (line 513) | type PanelAnalyticsRoutesItem struct
type PanelAnalyticsRoutesPage (line 518) | type PanelAnalyticsRoutesPage struct
type PanelAnalyticsRoutesPerfItem (line 525) | type PanelAnalyticsRoutesPerfItem struct
type PanelAnalyticsRoutesPerfPage (line 531) | type PanelAnalyticsRoutesPerfPage struct
type PanelAnalyticsAgentsItem (line 539) | type PanelAnalyticsAgentsItem struct
type PanelAnalyticsAgentsPage (line 545) | type PanelAnalyticsAgentsPage struct
type PanelAnalyticsReferrersPage (line 551) | type PanelAnalyticsReferrersPage struct
type PanelAnalyticsRoutePage (line 558) | type PanelAnalyticsRoutePage struct
type PanelAnalyticsAgentPage (line 566) | type PanelAnalyticsAgentPage struct
type PanelAnalyticsDuoPage (line 574) | type PanelAnalyticsDuoPage struct
type PanelThemesPage (line 581) | type PanelThemesPage struct
type PanelMenuListItem (line 587) | type PanelMenuListItem struct
type PanelMenuListPage (line 593) | type PanelMenuListPage struct
type PanelWidgetListPage (line 598) | type PanelWidgetListPage struct
type PanelMenuPage (line 604) | type PanelMenuPage struct
type PanelMenuItemPage (line 610) | type PanelMenuItemPage struct
type PanelUserPageSearch (line 615) | type PanelUserPageSearch struct
type PanelUserPage (line 622) | type PanelUserPage struct
type PanelGroupPage (line 630) | type PanelGroupPage struct
type PanelEditGroupPage (line 636) | type PanelEditGroupPage struct
type GroupForumPermPreset (line 645) | type GroupForumPermPreset struct
type PanelEditForumPage (line 651) | type PanelEditForumPage struct
type ForumActionAction (line 662) | type ForumActionAction struct
type NameLangToggle (line 667) | type NameLangToggle struct
type PanelEditForumGroupPage (line 673) | type PanelEditForumGroupPage struct
type PanelEditGroupPermsPage (line 684) | type PanelEditGroupPermsPage struct
type GroupPromotionExtend (line 693) | type GroupPromotionExtend struct
type PanelEditGroupPromotionsPage (line 699) | type PanelEditGroupPromotionsPage struct
type BackupItem (line 707) | type BackupItem struct
type PanelBackupPage (line 715) | type PanelBackupPage struct
type PageLogItem (line 720) | type PageLogItem struct
type PanelLogsPage (line 726) | type PanelLogsPage struct
type PageRegLogItem (line 732) | type PageRegLogItem struct
type PanelRegLogsPage (line 737) | type PanelRegLogsPage struct
type DebugPageTasks (line 743) | type DebugPageTasks struct
type DebugPageCache (line 752) | type DebugPageCache struct
type DebugPageDatabase (line 764) | type DebugPageDatabase struct
type DebugPageDisk (line 789) | type DebugPageDisk struct
type PanelDebugPage (line 798) | type PanelDebugPage struct
type PanelTaskTask (line 818) | type PanelTaskTask struct
type PanelTaskType (line 822) | type PanelTaskType struct
type PanelTaskPage (line 826) | type PanelTaskPage struct
type PageSimple (line 832) | type PageSimple struct
type AreYouSure (line 837) | type AreYouSure struct
function DefaultHeader (line 843) | func DefaultHeader(w http.ResponseWriter, u *User) *Header {
function SimpleDefaultHeader (line 846) | func SimpleDefaultHeader(w http.ResponseWriter) *Header {
FILE: common/parser.go
constant imageSizeHint (line 57) | imageSizeHint = len("
@")...
function init (line 62) | func init() {
type emojiHolder (line 68) | type emojiHolder struct
function InitEmoji (line 73) | func InitEmoji() error {
function shortcodeToUnicode (line 108) | func shortcodeToUnicode(msg string) string {
type TagToAction (line 116) | type TagToAction struct
function tryStepForward (line 124) | func tryStepForward(i, step int, runes []rune) (int, bool) {
function tryStepBackward (line 133) | func tryStepBackward(i, step int, runes []rune) (int, bool) {
function PreparseMessage (line 142) | func PreparseMessage(msg string) string {
function peek (line 388) | func peek(cur, skip int, runes []rune) rune {
function peekMatch (line 396) | func peekMatch(cur int, phrase string, runes []rune) bool {
function AddHashLinkType (line 412) | func AddHashLinkType(prefix string, h func(*strings.Builder, string, *in...
function WriteURL (line 422) | func WriteURL(sb *strings.Builder, url, label string) {
type ParseSettings (line 471) | type ParseSettings struct
method CopyPtr (line 475) | func (ps *ParseSettings) CopyPtr() *ParseSettings {
function ParseMessage (line 481) | func ParseMessage(msg string, sectionID int, sectionType string, setting...
function ParseMessage2 (line 494) | func ParseMessage2(msg string, sectionID int, sectionType string, settin...
function validateURLString (line 874) | func validateURLString(d string) bool {
function validatedURLBytes (line 899) | func validatedURLBytes(data []byte) (url []byte) {
function PartialURLString (line 927) | func PartialURLString(d string) (url []byte) {
function PartialURLStringLen (line 956) | func PartialURLStringLen(d string) (int, bool) {
function PartialURLStringLen2 (line 1001) | func PartialURLStringLen2(d string) int {
type MediaEmbed (line 1028) | type MediaEmbed struct
constant ENone (line 1039) | ENone = iota
constant ERaw (line 1040) | ERaw
constant ERawExternal (line 1041) | ERawExternal
constant EImage (line 1042) | EImage
constant AImage (line 1043) | AImage
constant AVideo (line 1044) | AVideo
constant AAudio (line 1045) | AAudio
constant AText (line 1046) | AText
constant AOther (line 1047) | AOther
function parseMediaString (line 1053) | func parseMediaString(data string, settings *ParseSettings) (media Media...
function parseDuration (line 1246) | func parseDuration(dur string) (s, m, h int) {
function CoerceIntString (line 1271) | func CoerceIntString(data string) (res, length int) {
function Paginate (line 1295) | func Paginate(currentPage, lastPage, maxPages int) (out []int) {
function PageOffset (line 1315) | func PageOffset(count, page, perPage int) (int, int, int) {
function LastPage (line 1337) | func LastPage(count, perPage int) int {
FILE: common/password_reset.go
type DefaultPasswordResetter (line 14) | type DefaultPasswordResetter struct
method Create (line 41) | func (r *DefaultPasswordResetter) Create(email string, uid int, token ...
method FlushTokens (line 46) | func (r *DefaultPasswordResetter) FlushTokens(uid int) error {
method ValidateToken (line 51) | func (r *DefaultPasswordResetter) ValidateToken(uid int, token string)...
function NewDefaultPasswordResetter (line 30) | func NewDefaultPasswordResetter(acc *qgen.Accumulator) (*DefaultPassword...
FILE: common/permissions.go
type Perms (line 50) | type Perms struct
function init (line 102) | func init() {
function StripInvalidGroupForumPreset (line 161) | func StripInvalidGroupForumPreset(preset string) string {
function StripInvalidPreset (line 169) | func StripInvalidPreset(preset string) string {
function PresetToLang (line 178) | func PresetToLang(preset string) string {
function RebuildGroupPermissions (line 189) | func RebuildGroupPermissions(g *Group) error {
function OverridePerms (line 216) | func OverridePerms(p *Perms, status bool) {
function OverrideForumPerms (line 225) | func OverrideForumPerms(p *Perms, status bool) {
function RegisterPluginPerm (line 239) | func RegisterPluginPerm(name string) {
function DeregisterPluginPerm (line 243) | func DeregisterPluginPerm(name string) {
FILE: common/phrases/phrases.go
type LevelPhrases (line 31) | type LevelPhrases struct
type LanguagePack (line 40) | type LanguagePack struct
function InitPhrases (line 69) | func InitPhrases(lang string) error {
function LoadLangPack (line 167) | func LoadLangPack(name string) error {
function SaveLangPack (line 173) | func SaveLangPack(langPack *LanguagePack) error {
function GetLangPack (line 178) | func GetLangPack() *LanguagePack {
function GetLevelPhrase (line 182) | func GetLevelPhrase(level int) string {
function GetPermPhrase (line 190) | func GetPermPhrase(name string) string {
function GetSettingPhrase (line 198) | func GetSettingPhrase(name string) string {
function GetAllSettingPhrases (line 206) | func GetAllSettingPhrases() map[string]string {
function GetAllPermPresets (line 210) | func GetAllPermPresets() map[string]string {
function GetAccountPhrase (line 214) | func GetAccountPhrase(name string) string {
function GetUserAgentPhrase (line 222) | func GetUserAgentPhrase(name string) (string, bool) {
function GetOSPhrase (line 230) | func GetOSPhrase(name string) (string, bool) {
function GetHumanLangPhrase (line 238) | func GetHumanLangPhrase(name string) (string, bool) {
function GetErrorPhrase (line 247) | func GetErrorPhrase(name string) string {
function GetErrorPhraseBytes (line 254) | func GetErrorPhraseBytes(name string) []byte {
function GetNoticePhrase (line 262) | func GetNoticePhrase(name string) string {
function GetTitlePhrase (line 270) | func GetTitlePhrase(name string) string {
function GetTitlePhrasef (line 278) | func GetTitlePhrasef(name string, params ...interface{}) string {
function GetTmplPhrase (line 286) | func GetTmplPhrase(name string) string {
function GetTmplPhrasef (line 294) | func GetTmplPhrasef(name string, params ...interface{}) string {
function GetTmplPhrases (line 302) | func GetTmplPhrases() map[string]string {
function GetTmplPhrasesByPrefix (line 306) | func GetTmplPhrasesByPrefix(prefix string) (phrases map[string]string, o...
function getPlaceholder (line 311) | func getPlaceholder(prefix, suffix string) string {
function getPlaceholderBytes (line 314) | func getPlaceholderBytes(prefix, suffix string) []byte {
function GetCurrentLangPack (line 319) | func GetCurrentLangPack() *LanguagePack {
function AddPhrase (line 325) | func AddPhrase() {
function UpdatePhrase (line 328) | func UpdatePhrase() {
function DeletePhrase (line 331) | func DeletePhrase() {
function ChangeLanguagePack (line 337) | func ChangeLanguagePack(name string) (exists bool) {
function CurrentLanguagePackName (line 346) | func CurrentLanguagePackName() (name string) {
function GetLanguagePackByName (line 350) | func GetLanguagePackByName(name string) (pack *LanguagePack, ok bool) {
function RegisterTmplPhraseNames (line 360) | func RegisterTmplPhraseNames(phraseNames []string) (tmplID int) {
function GetTmplPhrasesBytes (line 365) | func GetTmplPhrasesBytes(tmplID int) [][]byte {
function TmplIndexCallback (line 373) | func TmplIndexCallback(tmplID int, phraseSet [][]byte) {
function AddTmplIndexCallback (line 377) | func AddTmplIndexCallback(h func([][]byte)) {
FILE: common/pluginlangs.go
type PluginMeta (line 13) | type PluginMeta struct
type PluginLang (line 26) | type PluginLang interface
function InitPluginLangs (line 45) | func InitPluginLangs() error {
function GetPluginFiles (line 99) | func GetPluginFiles() (pluginList []string, err error) {
function ExtToPluginLang (line 113) | func ExtToPluginLang(ext string) (PluginLang, error) {
FILE: common/poll.go
type Poll (line 11) | type Poll struct
method CastVote (line 27) | func (p *Poll) CastVote(optionIndex, uid int, ip string) error {
method Delete (line 43) | func (p *Poll) Delete() error {
method Resultsf (line 57) | func (p *Poll) Resultsf(f func(votes int) error) error {
method Copy (line 76) | func (p *Poll) Copy() Poll {
type PollStmts (line 80) | type PollStmts struct
function init (line 92) | func init() {
FILE: common/poll_cache.go
type PollCache (line 9) | type PollCache interface
type MemoryPollCache (line 25) | type MemoryPollCache struct
method Get (line 42) | func (s *MemoryPollCache) Get(id int) (*Poll, error) {
method BulkGet (line 53) | func (s *MemoryPollCache) BulkGet(ids []int) (list []*Poll) {
method GetUnsafe (line 64) | func (s *MemoryPollCache) GetUnsafe(id int) (*Poll, error) {
method Set (line 73) | func (s *MemoryPollCache) Set(item *Poll) error {
method Add (line 92) | func (s *MemoryPollCache) Add(item *Poll) error {
method AddUnsafe (line 105) | func (s *MemoryPollCache) AddUnsafe(item *Poll) error {
method Remove (line 115) | func (s *MemoryPollCache) Remove(id int) error {
method RemoveUnsafe (line 129) | func (s *MemoryPollCache) RemoveUnsafe(id int) error {
method Flush (line 140) | func (s *MemoryPollCache) Flush() {
method Length (line 150) | func (s *MemoryPollCache) Length() int {
method SetCapacity (line 155) | func (s *MemoryPollCache) SetCapacity(capacity int) {
method GetCapacity (line 161) | func (s *MemoryPollCache) GetCapacity() int {
function NewMemoryPollCache (line 34) | func NewMemoryPollCache(capacity int) *MemoryPollCache {
type NullPollCache (line 166) | type NullPollCache struct
method Get (line 175) | func (s *NullPollCache) Get(id int) (*Poll, error) {
method BulkGet (line 178) | func (s *NullPollCache) BulkGet(ids []int) (list []*Poll) {
method GetUnsafe (line 181) | func (s *NullPollCache) GetUnsafe(id int) (*Poll, error) {
method Set (line 184) | func (s *NullPollCache) Set(_ *Poll) error {
method Add (line 187) | func (s *NullPollCache) Add(_ *Poll) error {
method AddUnsafe (line 190) | func (s *NullPollCache) AddUnsafe(_ *Poll) error {
method Remove (line 193) | func (s *NullPollCache) Remove(id int) error {
method RemoveUnsafe (line 196) | func (s *NullPollCache) RemoveUnsafe(id int) error {
method Flush (line 199) | func (s *NullPollCache) Flush() {
method Length (line 201) | func (s *NullPollCache) Length() int {
method SetCapacity (line 204) | func (s *NullPollCache) SetCapacity(_ int) {
method GetCapacity (line 206) | func (s *NullPollCache) GetCapacity() int {
function NewNullPollCache (line 170) | func NewNullPollCache() *NullPollCache {
FILE: common/poll_store.go
type PollOption (line 15) | type PollOption struct
type Pollable (line 20) | type Pollable interface
type PollStore (line 26) | type PollStore interface
type DefaultPollStore (line 38) | type DefaultPollStore struct
method Exists (line 70) | func (s *DefaultPollStore) Exists(id int) bool {
method Get (line 78) | func (s *DefaultPollStore) Get(id int) (*Poll, error) {
method BulkGetMap (line 101) | func (s *DefaultPollStore) BulkGetMap(ids []int) (list map[int]*Poll, ...
method Reload (line 176) | func (s *DefaultPollStore) Reload(id int) error {
method unpackOptionsMap (line 194) | func (s *DefaultPollStore) unpackOptionsMap(rawOptions map[int]string)...
method ClearIPs (line 202) | func (s *DefaultPollStore) ClearIPs() error {
method Create (line 208) | func (s *DefaultPollStore) Create(parent Pollable, pollType int, pollO...
method Count (line 234) | func (s *DefaultPollStore) Count() int {
method SetCache (line 238) | func (s *DefaultPollStore) SetCache(cache PollCache) {
method GetCache (line 243) | func (s *DefaultPollStore) GetCache() PollCache {
function NewDefaultPollStore (line 51) | func NewDefaultPollStore(cache PollCache) (*DefaultPollStore, error) {
FILE: common/profile_reply.go
type ProfileReply (line 14) | type ProfileReply struct
method Delete (line 49) | func (r *ProfileReply) Delete() error {
method SetBody (line 66) | func (r *ProfileReply) SetBody(content string) error {
method Creator (line 73) | func (r *ProfileReply) Creator() (*User, error) {
type ProfileReplyStmts (line 27) | type ProfileReplyStmts struct
function init (line 32) | func init() {
function BlankProfileReply (line 44) | func BlankProfileReply(id int) *ProfileReply {
FILE: common/profile_reply_store.go
type ProfileReplyStore (line 11) | type ProfileReplyStore interface
type SQLProfileReplyStore (line 21) | type SQLProfileReplyStore struct
method Get (line 42) | func (s *SQLProfileReplyStore) Get(id int) (*ProfileReply, error) {
method Exists (line 48) | func (s *SQLProfileReplyStore) Exists(id int) bool {
method ClearIPs (line 56) | func (s *SQLProfileReplyStore) ClearIPs() error {
method Create (line 61) | func (s *SQLProfileReplyStore) Create(profileID int, content string, c...
method Count (line 79) | func (s *SQLProfileReplyStore) Count() (count int) {
function NewSQLProfileReplyStore (line 30) | func NewSQLProfileReplyStore(acc *qgen.Accumulator) (*SQLProfileReplySto...
FILE: common/promotions.go
type GroupPromotion (line 13) | type GroupPromotion struct
type GroupPromotionStore (line 25) | type GroupPromotionStore interface
type DefaultGroupPromotionStore (line 33) | type DefaultGroupPromotionStore struct
method Tick (line 62) | func (s *DefaultGroupPromotionStore) Tick() error {
method GetByGroup (line 66) | func (s *DefaultGroupPromotionStore) GetByGroup(gid int) (gps []*Group...
method Get (line 85) | func (s *DefaultGroupPromotionStore) Get(id int) (*GroupPromotion, err...
method PromoteIfEligible (line 100) | func (s *DefaultGroupPromotionStore) PromoteIfEligible(u *User, level,...
method Delete (line 120) | func (s *DefaultGroupPromotionStore) Delete(id int) error {
method Create (line 125) | func (s *DefaultGroupPromotionStore) Create(from, to int, twoWay bool,...
function NewDefaultGroupPromotionStore (line 45) | func NewDefaultGroupPromotionStore(acc *qgen.Accumulator) (*DefaultGroup...
FILE: common/ratelimit.go
type RateLimiter (line 14) | type RateLimiter interface
type RateData (line 19) | type RateData struct
type RateFence (line 24) | type RateFence struct
type RateLimit (line 30) | type RateLimit struct
method Limit (line 44) | func (l *RateLimit) Limit(name string, ltype int) error {
function NewRateLimit (line 37) | func NewRateLimit(fences []RateFence) *RateLimit {
type DefaultRateLimiter (line 76) | type DefaultRateLimiter struct
method LimitIP (line 86) | func (l *DefaultRateLimiter) LimitIP(limit, ip string) error {
method LimitUser (line 94) | func (l *DefaultRateLimiter) LimitUser(limit string, user int) error {
function NewDefaultRateLimiter (line 80) | func NewDefaultRateLimiter() *DefaultRateLimiter {
FILE: common/recalc.go
type RecalcInt (line 13) | type RecalcInt interface
type DefaultRecalc (line 22) | type DefaultRecalc struct
method Replies (line 42) | func (s *DefaultRecalc) Replies() (count int, err error) {
method Forums (line 60) | func (s *DefaultRecalc) Forums() (count int, err error) {
method Subscriptions (line 72) | func (s *DefaultRecalc) Subscriptions() (count int, err error) {
method ActivityStream (line 99) | func (s *DefaultRecalc) ActivityStream() (count int, err error) {
method Users (line 162) | func (s *DefaultRecalc) Users() error {
method Attachments (line 168) | func (s *DefaultRecalc) Attachments() (count int, err error) {
function NewDefaultRecalc (line 30) | func NewDefaultRecalc(acc *qgen.Accumulator) (*DefaultRecalc, error) {
type Existable (line 95) | type Existable interface
FILE: common/relations.go
type BlockStore (line 13) | type BlockStore interface
type DefaultBlockStore (line 22) | type DefaultBlockStore struct
method IsBlockedBy (line 41) | func (s *DefaultBlockStore) IsBlockedBy(blocker, blockee int) (bool, e...
method BulkIsBlockedBy (line 50) | func (s *DefaultBlockStore) BulkIsBlockedBy(blockers []int, blockee in...
method Add (line 65) | func (s *DefaultBlockStore) Add(blocker, blockee int) error {
method Remove (line 70) | func (s *DefaultBlockStore) Remove(blocker, blockee int) error {
method BlockedByOffset (line 75) | func (s *DefaultBlockStore) BlockedByOffset(blocker, offset, perPage i...
method BlockedByCount (line 91) | func (s *DefaultBlockStore) BlockedByCount(blocker int) (count int) {
function NewDefaultBlockStore (line 30) | func NewDefaultBlockStore(acc *qgen.Accumulator) (*DefaultBlockStore, er...
type FriendInvite (line 99) | type FriendInvite struct
type FriendStore (line 104) | type FriendStore interface
type DefaultFriendStore (line 111) | type DefaultFriendStore struct
method AddInvite (line 128) | func (s *DefaultFriendStore) AddInvite(requester, target int) error {
method Confirm (line 133) | func (s *DefaultFriendStore) Confirm(requester, target int) error {
method GetOwnSentInvites (line 138) | func (s *DefaultFriendStore) GetOwnSentInvites(uid int) ([]FriendInvit...
method GetOwnRecvInvites (line 141) | func (s *DefaultFriendStore) GetOwnRecvInvites(uid int) ([]FriendInvit...
function NewDefaultFriendStore (line 118) | func NewDefaultFriendStore(acc *qgen.Accumulator) (*DefaultFriendStore, ...
FILE: common/reply.go
type ReplyUser (line 19) | type ReplyUser struct
type Reply (line 40) | type Reply struct
method Like (line 105) | func (r *Reply) Like(uid int) (err error) {
method Unlike (line 129) | func (r *Reply) Unlike(uid int) error {
method Delete (line 144) | func (r *Reply) Delete() error {
method SetPost (line 197) | func (r *Reply) SetPost(content string) error {
method SetPoll (line 210) | func (r *Reply) SetPoll(pollID int) error {
method Topic (line 216) | func (r *Reply) Topic() (*Topic, error) {
method GetID (line 220) | func (r *Reply) GetID() int {
method GetTable (line 224) | func (r *Reply) GetTable() string {
method Copy (line 229) | func (r *Reply) Copy() Reply {
type ReplyStmts (line 60) | type ReplyStmts struct
function init (line 78) | func init() {
FILE: common/reply_cache.go
type ReplyCache (line 10) | type ReplyCache interface
type MemoryReplyCache (line 26) | type MemoryReplyCache struct
method Get (line 43) | func (s *MemoryReplyCache) Get(id int) (*Reply, error) {
method GetUnsafe (line 54) | func (s *MemoryReplyCache) GetUnsafe(id int) (*Reply, error) {
method BulkGet (line 63) | func (s *MemoryReplyCache) BulkGet(ids []int) (list []*Reply) {
method Set (line 74) | func (s *MemoryReplyCache) Set(item *Reply) error {
method Add (line 92) | func (s *MemoryReplyCache) Add(item *Reply) error {
method AddUnsafe (line 106) | func (s *MemoryReplyCache) AddUnsafe(item *Reply) error {
method Remove (line 116) | func (s *MemoryReplyCache) Remove(id int) error {
method RemoveUnsafe (line 130) | func (s *MemoryReplyCache) RemoveUnsafe(id int) error {
method Flush (line 141) | func (s *MemoryReplyCache) Flush() {
method Length (line 150) | func (s *MemoryReplyCache) Length() int {
method SetCapacity (line 155) | func (s *MemoryReplyCache) SetCapacity(cap int) {
method GetCapacity (line 161) | func (s *MemoryReplyCache) GetCapacity() int {
function NewMemoryReplyCache (line 35) | func NewMemoryReplyCache(cap int) *MemoryReplyCache {
FILE: common/reply_store.go
type ReplyStore (line 12) | type ReplyStore interface
type SQLReplyStore (line 27) | type SQLReplyStore struct
method Get (line 60) | func (s *SQLReplyStore) Get(id int) (*Reply, error) {
method Each (line 78) | func (s *SQLReplyStore) Each(f func(*Reply) error) error {
method Exists (line 96) | func (s *SQLReplyStore) Exists(id int) bool {
method ClearIPs (line 104) | func (s *SQLReplyStore) ClearIPs() error {
method Create (line 110) | func (s *SQLReplyStore) Create(t *Topic, content, ip string, uid int) ...
method Count (line 128) | func (s *SQLReplyStore) Count() (count int) {
method CountUser (line 131) | func (s *SQLReplyStore) CountUser(uid int) (count int) {
method CountMegaUser (line 134) | func (s *SQLReplyStore) CountMegaUser(uid int) (count int) {
method CountBigUser (line 137) | func (s *SQLReplyStore) CountBigUser(uid int) (count int) {
method SetCache (line 141) | func (s *SQLReplyStore) SetCache(cache ReplyCache) {
method GetCache (line 145) | func (s *SQLReplyStore) GetCache() ReplyCache {
function NewSQLReplyStore (line 41) | func NewSQLReplyStore(acc *qgen.Accumulator, cache ReplyCache) (*SQLRepl...
FILE: common/report_store.go
constant ReportForumID (line 13) | ReportForumID = 1
type ReportStore (line 19) | type ReportStore interface
type DefaultReportStore (line 23) | type DefaultReportStore struct
method Create (line 37) | func (s *DefaultReportStore) Create(title, content string, u *User, it...
function NewDefaultReportStore (line 28) | func NewDefaultReportStore(acc *qgen.Accumulator) (*DefaultReportStore, ...
FILE: common/routes_common.go
function simpleForumUserCheck (line 32) | func simpleForumUserCheck(w http.ResponseWriter, r *http.Request, u *Use...
function forumUserCheck (line 61) | func forumUserCheck(h *Header, w http.ResponseWriter, r *http.Request, u...
function cascadeForumPerms (line 91) | func cascadeForumPerms(fp *ForumPerms, u *User) {
function panelUserCheck (line 115) | func panelUserCheck(w http.ResponseWriter, r *http.Request, u *User) (h ...
function simplePanelUserCheck (line 190) | func simplePanelUserCheck(w http.ResponseWriter, r *http.Request, u *Use...
function simpleUserCheck (line 195) | func simpleUserCheck(w http.ResponseWriter, r *http.Request, u *User) (l...
function GetThemeByReq (line 203) | func GetThemeByReq(r *http.Request) *Theme {
function userCheck (line 218) | func userCheck(w http.ResponseWriter, r *http.Request, u *User) (h *Head...
function userCheck2 (line 224) | func userCheck2(w http.ResponseWriter, r *http.Request, u *User, nano in...
function PrepResources (line 269) | func PrepResources(u *User, h *Header, theme *Theme) {
function pstr (line 318) | func pstr(name string) string {
function preRoute (line 335) | func preRoute(w http.ResponseWriter, r *http.Request) (User, bool) {
function UploadAvatar (line 388) | func UploadAvatar(w http.ResponseWriter, r *http.Request, u *User, tuid ...
function ChangeAvatar (line 454) | func ChangeAvatar(path string, w http.ResponseWriter, r *http.Request, u...
function SuperAdminOnly (line 480) | func SuperAdminOnly(w http.ResponseWriter, r *http.Request, u *User) Rou...
function AdminOnly (line 488) | func AdminOnly(w http.ResponseWriter, r *http.Request, u *User) RouteErr...
function SuperModOnly (line 496) | func SuperModOnly(w http.ResponseWriter, r *http.Request, u *User) Route...
function MemberOnly (line 504) | func MemberOnly(w http.ResponseWriter, r *http.Request, u *User) RouteEr...
function NoBanned (line 512) | func NoBanned(w http.ResponseWriter, r *http.Request, u *User) RouteError {
function ParseForm (line 519) | func ParseForm(w http.ResponseWriter, r *http.Request, u *User) RouteErr...
function NoSessionMismatch (line 526) | func NoSessionMismatch(w http.ResponseWriter, r *http.Request, u *User) ...
function ReqIsJson (line 541) | func ReqIsJson(r *http.Request) bool {
function HandleUploadRoute (line 545) | func HandleUploadRoute(w http.ResponseWriter, r *http.Request, u *User, ...
function NoUploadSessionMismatch (line 560) | func NoUploadSessionMismatch(w http.ResponseWriter, r *http.Request, u *...
FILE: common/search.go
type Searcher (line 13) | type Searcher interface
type SQLSearcher (line 19) | type SQLSearcher struct
method queryAll (line 44) | func (s *SQLSearcher) queryAll(q string) ([]int, error) {
method Query (line 79) | func (s *SQLSearcher) Query(q string, zones []int) (ids []int, err err...
function NewSQLSearcher (line 30) | func NewSQLSearcher(acc *qgen.Accumulator) (*SQLSearcher, error) {
type ElasticSearchSearcher (line 146) | type ElasticSearchSearcher struct
method Query (line 153) | func (s *ElasticSearchSearcher) Query(q string, zones []int) ([]int, e...
function NewElasticSearchSearcher (line 149) | func NewElasticSearchSearcher() (*ElasticSearchSearcher, error) {
FILE: common/settings.go
type SettingMap (line 16) | type SettingMap
method ParseSetting (line 83) | func (sBox SettingMap) ParseSetting(name, content, typ, constraint str...
method BypassGet (line 125) | func (sBox SettingMap) BypassGet(name string) (*Setting, error) {
method BypassGetAll (line 131) | func (sBox SettingMap) BypassGetAll() (settingList []*Setting, err err...
method Update (line 149) | func (sBox SettingMap) Update(name, content string) RouteError {
type SettingStore (line 18) | type SettingStore interface
type OptionLabel (line 24) | type OptionLabel struct
type Setting (line 30) | type Setting struct
method Copy (line 58) | func (s *Setting) Copy() (o *Setting) {
type SettingStmts (line 37) | type SettingStmts struct
function init (line 45) | func init() {
function LoadSettings (line 64) | func LoadSettings() error {
FILE: common/site.go
type site (line 28) | type site struct
type dbConfig (line 45) | type dbConfig struct
type config (line 63) | type config struct
type devConfig (line 147) | type devConfig struct
type configHolder (line 169) | type configHolder struct
function LoadConfig (line 177) | func LoadConfig() error {
function ProcessConfig (line 206) | func ProcessConfig() (err error) {
function VerifyConfig (line 364) | func VerifyConfig() (err error) {
function SwitchToTestDB (line 378) | func SwitchToTestDB() {
FILE: common/statistics.go
type StatStoreInt (line 10) | type StatStoreInt interface
type DefaultStatStore (line 14) | type DefaultStatStore struct
method LookupInt (line 21) | func (s *DefaultStatStore) LookupInt(name string, duration int, unit s...
method countTable (line 29) | func (s *DefaultStatStore) countTable(table string, duration int, unit...
function NewDefaultStatStore (line 17) | func NewDefaultStatStore() *DefaultStatStore {
FILE: common/subscription.go
type SubscriptionStore (line 12) | type SubscriptionStore interface
type DefaultSubscriptionStore (line 18) | type DefaultSubscriptionStore struct
method Add (line 34) | func (s *DefaultSubscriptionStore) Add(uid, elementID int, elementType...
method Delete (line 40) | func (s *DefaultSubscriptionStore) Delete(uid, targetID int, targetTyp...
method DeleteResource (line 45) | func (s *DefaultSubscriptionStore) DeleteResource(targetID int, target...
function NewDefaultSubscriptionStore (line 24) | func NewDefaultSubscriptionStore() (*DefaultSubscriptionStore, error) {
FILE: common/tasks.go
type TaskStmts (line 17) | type TaskStmts struct
type TaskSet (line 24) | type TaskSet interface
type DefaultTaskSet (line 31) | type DefaultTaskSet struct
method Add (line 35) | func (s *DefaultTaskSet) Add(task func() error) {
method GetList (line 39) | func (s *DefaultTaskSet) GetList() []func() error {
method Run (line 43) | func (s *DefaultTaskSet) Run() error {
method Count (line 52) | func (s *DefaultTaskSet) Count() int {
type ScheduledTasks (line 56) | type ScheduledTasks struct
function NewScheduledTasks (line 65) | func NewScheduledTasks() *ScheduledTasks {
function init (line 86) | func init() {
function HandleExpiredScheduledGroups (line 158) | func HandleExpiredScheduledGroups() error {
function HandleServerSync (line 184) | func HandleServerSync() error {
FILE: common/template_init.go
function skipCTmpl (line 30) | func skipCTmpl(key string) bool {
type CTmpl (line 39) | type CTmpl struct
function genIntTmpl (line 48) | func genIntTmpl(name string) func(pi interface{}, w io.Writer) error {
function tmplInitUsers (line 96) | func tmplInitUsers() (*User, *User, *User) {
function tmplInitHeaders (line 109) | func tmplInitHeaders(u, u2, u3 *User) (*Header, *Header, *Header) {
type TmplLoggedin (line 137) | type TmplLoggedin struct
type nobreak (line 143) | type nobreak interface
type TItem (line 145) | type TItem struct
type TItemHold (line 151) | type TItemHold
method Add (line 153) | func (h TItemHold) Add(name, expects string, expectsInt interface{}) {
method AddStd (line 157) | func (h TItemHold) AddStd(name, expects string, expectsInt interface{}) {
function CompileTemplates (line 162) | func CompileTemplates() error {
function compileCommons (line 215) | func compileCommons(c *tmpl.CTemplateSet, head, head2 *Header, forumList...
function compileTemplates (line 267) | func compileTemplates(wg *sync.WaitGroup, c *tmpl.CTemplateSet, themeNam...
function CompileJSTemplates (line 461) | func CompileJSTemplates() error {
function compileJSTemplates (line 515) | func compileJSTemplates(wg *sync.WaitGroup, c *tmpl.CTemplateSet, themeN...
function getTemplateList (line 630) | func getTemplateList(c *tmpl.CTemplateSet, wg *sync.WaitGroup, prefix st...
function writeTemplateList (line 739) | func writeTemplateList(c *tmpl.CTemplateSet, wg *sync.WaitGroup, prefix ...
function arithToInt64 (line 753) | func arithToInt64(in interface{}) (o int64) {
function arithDuoToInt64 (line 773) | func arithDuoToInt64(left, right interface{}) (leftInt, rightInt int64) {
function initDefaultTmplFuncMap (line 777) | func initDefaultTmplFuncMap() {
function loadTemplates (line 922) | func loadTemplates(t *template.Template, themeName string) error {
function InitTemplates (line 1009) | func InitTemplates() error {
FILE: common/templates/context.go
type FragLite (line 8) | type FragLite struct
type Fragment (line 12) | type Fragment struct
type OutBufferFrame (line 19) | type OutBufferFrame struct
type CContext (line 27) | type CContext struct
method Push (line 37) | func (con *CContext) Push(nType string, body string) (index int) {
method PushText (line 42) | func (con *CContext) PushText(body string, fragIndex int, fragOutIndex...
method PushPhrase (line 47) | func (con *CContext) PushPhrase(langIndex int) (index int) {
method PushPhrasef (line 52) | func (con *CContext) PushPhrasef(langIndex int, args string) (index in...
method StartIf (line 57) | func (con *CContext) StartIf(body string) (index int) {
method StartIfPtr (line 61) | func (con *CContext) StartIfPtr(body string) (index int) {
method EndIf (line 66) | func (con *CContext) EndIf(startIndex int, body string) (index int) {
method StartLoop (line 71) | func (con *CContext) StartLoop(body string) (index int) {
method EndLoop (line 76) | func (con *CContext) EndLoop(body string) (index int) {
method StartTemplate (line 80) | func (con *CContext) StartTemplate(body string) (index int) {
method EndTemplate (line 84) | func (con *CContext) EndTemplate(body string) (index int) {
method AttachVars (line 88) | func (con *CContext) AttachVars(vars string, index int) {
method addFrame (line 98) | func (con *CContext) addFrame(body, ftype string, extra1 interface{}, ...
method LastBufIndex (line 103) | func (con *CContext) LastBufIndex() int {
method DiscardAndAfter (line 107) | func (con *CContext) DiscardAndAfter(index int) {
FILE: common/templates/minifiers.go
function Minify (line 9) | func Minify(data string) string {
function minifyHTML (line 21) | func minifyHTML(data string) string {
function minifyCSS (line 29) | func minifyCSS(data string) string {
function rgbToHexstr (line 36) | func rgbToHexstr(red, green, blue int) string {
FILE: common/templates/templates.go
type VarItem (line 25) | type VarItem struct
type VarItemReflect (line 31) | type VarItemReflect struct
type CTemplateConfig (line 37) | type CTemplateConfig struct
type CTemplateSet (line 49) | type CTemplateSet struct
method SetConfig (line 138) | func (c *CTemplateSet) SetConfig(config CTemplateConfig) {
method GetConfig (line 145) | func (c *CTemplateSet) GetConfig() CTemplateConfig {
method SetBaseImportMap (line 149) | func (c *CTemplateSet) SetBaseImportMap(importMap map[string]string) {
method SetBuildTags (line 153) | func (c *CTemplateSet) SetBuildTags(tags string) {
method SetOverrideTrack (line 157) | func (c *CTemplateSet) SetOverrideTrack(overriden map[string]map[strin...
method GetOverridenRoots (line 161) | func (c *CTemplateSet) GetOverridenRoots() map[string]map[string]bool {
method SetThemeName (line 165) | func (c *CTemplateSet) SetThemeName(name string) {
method SetPerThemeTmpls (line 169) | func (c *CTemplateSet) SetPerThemeTmpls(perThemeTmpls map[string]bool) {
method ResetLogs (line 173) | func (c *CTemplateSet) ResetLogs(in string) {
method buildImportList (line 198) | func (c *CTemplateSet) buildImportList() (importList string) {
method CompileByLoggedin (line 225) | func (c *CTemplateSet) CompileByLoggedin(name, fileDir, expects string...
method Compile (line 316) | func (c *CTemplateSet) Compile(name, fileDir, expects string, expectsI...
method compile (line 330) | func (c *CTemplateSet) compile(name, content, expects string, expectsI...
method rootIterate (line 806) | func (c *CTemplateSet) rootIterate(tree *parse.Tree, con CContext) {
method compileSwitch (line 829) | func (c *CTemplateSet) compileSwitch(con CContext, node parse.Node) {
method addText (line 934) | func (c *CTemplateSet) addText(con CContext, text []byte) {
method compileRangeNode (line 949) | func (c *CTemplateSet) compileRangeNode(con CContext, node *parse.Rang...
method skipStructPointers (line 1027) | func (c *CTemplateSet) skipStructPointers(cur reflect.Value, id string...
method checkIfValid (line 1040) | func (c *CTemplateSet) checkIfValid(cur reflect.Value, varHolder strin...
method compileSubSwitch (line 1056) | func (c *CTemplateSet) compileSubSwitch(con CContext, node *parse.Comm...
method compileExprSwitch (line 1168) | func (c *CTemplateSet) compileExprSwitch(con CContext, node *parse.Com...
method unknownNode (line 1207) | func (c *CTemplateSet) unknownNode(n parse.Node) {
method compileIdentSwitchN (line 1214) | func (c *CTemplateSet) compileIdentSwitchN(con CContext, n *parse.Comm...
method dumpSymbol (line 1220) | func (c *CTemplateSet) dumpSymbol(pos int, n *parse.CommandNode, symbo...
method compareFunc (line 1226) | func (c *CTemplateSet) compareFunc(con CContext, pos int, n *parse.Com...
method simpleMath (line 1231) | func (c *CTemplateSet) simpleMath(con CContext, pos int, n *parse.Comm...
method compareJoin (line 1247) | func (c *CTemplateSet) compareJoin(con CContext, pos int, node *parse....
method compileIdentSwitch (line 1279) | func (c *CTemplateSet) compileIdentSwitch(con CContext, node *parse.Co...
method compileReflectSwitch (line 1605) | func (c *CTemplateSet) compileReflectSwitch(con CContext, node *parse....
method compileIfVarSubN (line 1631) | func (c *CTemplateSet) compileIfVarSubN(con CContext, varname string) ...
method compileIfVarSub (line 1637) | func (c *CTemplateSet) compileIfVarSub(con CContext, varname string) (...
method compileBoolSub (line 1727) | func (c *CTemplateSet) compileBoolSub(con CContext, varname string) st...
method debugParam (line 1753) | func (c *CTemplateSet) debugParam(param interface{}, depth int) (pstr ...
method dumpCall (line 1793) | func (c *CTemplateSet) dumpCall(name string, params ...interface{}) {
method retCall (line 1803) | func (c *CTemplateSet) retCall(name string, params ...interface{}) {
method compileVarSub (line 1828) | func (c *CTemplateSet) compileVarSub(con CContext, varname string, val...
method compileSubTemplate (line 1967) | func (c *CTemplateSet) compileSubTemplate(pcon CContext, node *parse.T...
method loadTemplate (line 2136) | func (c *CTemplateSet) loadTemplate(fileDir, name string) (content str...
method afterTemplate (line 2169) | func (c *CTemplateSet) afterTemplate(con CContext, startIndex int /*, ...
method afterTemplateV2 (line 2284) | func (c *CTemplateSet) afterTemplateV2(con CContext, startIndex int /*...
method detail (line 2393) | func (c *CTemplateSet) detail(args ...interface{}) {
method detailf (line 2399) | func (c *CTemplateSet) detailf(left string, args ...interface{}) {
method error (line 2405) | func (c *CTemplateSet) error(args ...interface{}) {
method critical (line 2411) | func (c *CTemplateSet) critical(args ...interface{}) {
function NewCTemplateSet (line 85) | func NewCTemplateSet(in string, logDir ...string) *CTemplateSet {
type SkipBlock (line 182) | type SkipBlock struct
type Skipper (line 187) | type Skipper struct
type OutFrag (line 192) | type OutFrag struct
function inSlice (line 820) | func inSlice(haystack []string, expr string) bool {
function buildUserExprs (line 1814) | func buildUserExprs(holder string) ([]string, []string) {
constant ATTmpl (line 2279) | ATTmpl = iota
constant ATLoop (line 2280) | ATLoop
constant ATIfPtr (line 2281) | ATIfPtr
FILE: common/thaw.go
type ThawInt (line 9) | type ThawInt interface
type SingleServerThaw (line 16) | type SingleServerThaw struct
method Thawed (line 28) | func (t *SingleServerThaw) Thawed() bool {
method Thaw (line 35) | func (t *SingleServerThaw) Thaw() {
function NewSingleServerThaw (line 20) | func NewSingleServerThaw() *SingleServerThaw {
type TestThaw (line 41) | type TestThaw struct
method Thawed (line 47) | func (t *TestThaw) Thawed() bool {
method Thaw (line 50) | func (t *TestThaw) Thaw() {
method Tick (line 52) | func (t *TestThaw) Tick() error {
function NewTestThaw (line 44) | func NewTestThaw() *TestThaw {
type DefaultThaw (line 56) | type DefaultThaw struct
method Tick (line 67) | func (t *DefaultThaw) Tick() error {
method Thawed (line 75) | func (t *DefaultThaw) Thawed() bool {
method Thaw (line 79) | func (t *DefaultThaw) Thaw() {
function NewDefaultThaw (line 60) | func NewDefaultThaw() *DefaultThaw {
FILE: common/theme.go
type Theme (line 30) | type Theme struct
method LoadStaticFiles (line 108) | func (t *Theme) LoadStaticFiles() error {
method AddThemeStaticFiles (line 198) | func (t *Theme) AddThemeStaticFiles() error {
method MapTemplates (line 297) | func (t *Theme) MapTemplates() {
method setActive (line 338) | func (t *Theme) setActive(active bool) error {
method HasDock (line 387) | func (t Theme) HasDock(name string) bool {
method BuildDock (line 396) | func (t Theme) BuildDock(dock string) (sbody string) {
method HasDockByID (line 404) | func (t Theme) HasDockByID(id int) bool {
method BuildDockByID (line 413) | func (t Theme) BuildDockByID(id int) (sbody string) {
method RunTmpl (line 433) | func (t *Theme) RunTmpl(template string, pi interface{}, w io.Writer) ...
method GetTmpl (line 478) | func (t *Theme) GetTmpl(template string) interface{} {
type ThemeSetting (line 70) | type ThemeSetting struct
type TemplateMapping (line 75) | type TemplateMapping struct
constant ResTypeUnknown (line 82) | ResTypeUnknown = iota
constant ResTypeSheet (line 83) | ResTypeSheet
constant ResTypeScript (line 84) | ResTypeScript
constant LocUnknown (line 87) | LocUnknown = iota
constant LocGlobal (line 88) | LocGlobal
constant LocFront (line 89) | LocFront
constant LocPanel (line 90) | LocPanel
type ThemeResource (line 93) | type ThemeResource struct
type ThemeMapTmplToDock (line 102) | type ThemeMapTmplToDock struct
function UpdateDefaultTheme (line 361) | func UpdateDefaultTheme(t *Theme) error {
type GzipResponseWriter (line 421) | type GzipResponseWriter struct
method Write (line 426) | func (w GzipResponseWriter) Write(b []byte) (int, error) {
FILE: common/theme_list.go
type ThemeList (line 22) | type ThemeList
method LoadActiveStatus (line 221) | func (t ThemeList) LoadActiveStatus() error {
method LoadStaticFiles (line 260) | func (t ThemeList) LoadStaticFiles() error {
type ThemeStmts (line 34) | type ThemeStmts struct
function init (line 43) | func init() {
function NewThemeList (line 56) | func NewThemeList() (themes ThemeList, err error) {
function ResetTemplateOverrides (line 269) | func ResetTemplateOverrides() {
function CreateThemeTemplate (line 305) | func CreateThemeTemplate(theme, name string) {
function GetDefaultThemeName (line 315) | func GetDefaultThemeName() string {
function SetDefaultThemeName (line 319) | func SetDefaultThemeName(name string) {
FILE: common/thumbnailer.go
function ThumbTask (line 17) | func ThumbTask(thumbChan chan bool) {
type ThumbnailerInt (line 93) | type ThumbnailerInt interface
type RezThumbnailer (line 97) | type RezThumbnailer struct
method Resize (line 100) | func (thumb *RezThumbnailer) Resize(format, inPath, tmpPath, outPath s...
method resize (line 105) | func (thumb *RezThumbnailer) resize(format, inPath, outPath string, wi...
type CaireThumbnailer (line 110) | type CaireThumbnailer struct
method Resize (line 147) | func (thumb *CaireThumbnailer) Resize(format, inPath, tmpPath, outPath...
function NewCaireThumbnailer (line 113) | func NewCaireThumbnailer() *CaireThumbnailer {
function precodeImage (line 117) | func precodeImage(format, inPath, tmpPath string) error {
FILE: common/tickloop.go
type TickLoop (line 18) | type TickLoop struct
method Loop (line 44) | func (l *TickLoop) Loop() {
function NewTickLoop (line 32) | func NewTickLoop() *TickLoop {
function DBTimeout (line 70) | func DBTimeout() time.Duration {
function StartTick (line 80) | func StartTick() (abort bool) {
function asmMatches (line 102) | func asmMatches() error {
function RunTasks (line 113) | func RunTasks(tasks []func() error) error {
function StartupTasks (line 131) | func StartupTasks() (e error) {
function Dailies (line 158) | func Dailies() (e error) {
type TickWatch (line 232) | type TickWatch struct
method DumpElapsed (line 253) | func (w *TickWatch) DumpElapsed() {
method Run (line 301) | func (w *TickWatch) Run() {
method Stop (line 351) | func (w *TickWatch) Stop() {
method Set (line 355) | func (w *TickWatch) Set(a *int64, v int64) {
method Clear (line 359) | func (w *TickWatch) Clear() {
function NewTickWatch (line 246) | func NewTickWatch() *TickWatch {
FILE: common/topic.go
type Topic (line 29) | type Topic struct
method TopicsRow (line 154) | func (t *Topic) TopicsRow() *TopicsRow {
method cacheRemove (line 252) | func (t *Topic) cacheRemove() {
method AddReply (line 260) | func (t *Topic) AddReply(rid, uid int) (e error) {
method Lock (line 270) | func (t *Topic) Lock() (e error) {
method Unlock (line 276) | func (t *Topic) Unlock() (e error) {
method MoveTo (line 282) | func (t *Topic) MoveTo(destForum int) (e error) {
method TestSetCreatedAt (line 295) | func (t *Topic) TestSetCreatedAt(s time.Time) (e error) {
method Stick (line 302) | func (t *Topic) Stick() (e error) {
method Unstick (line 308) | func (t *Topic) Unstick() (e error) {
method Like (line 316) | func (t *Topic) Like(score, uid int) (err error) {
method Unlike (line 338) | func (t *Topic) Unlike(uid int) error {
method Delete (line 428) | func (t *Topic) Delete() error {
method Update (line 501) | func (t *Topic) Update(name, content string) error {
method SetPoll (line 518) | func (t *Topic) SetPoll(pollID int) error {
method RemovePoll (line 524) | func (t *Topic) RemovePoll() error {
method CreateActionReply (line 532) | func (t *Topic) CreateActionReply(action, ip string, uid int) (err err...
method Author (line 1091) | func (t *Topic) Author() (*User, error) {
method GetID (line 1095) | func (t *Topic) GetID() int {
method GetTable (line 1098) | func (t *Topic) GetTable() string {
method Copy (line 1103) | func (t *Topic) Copy() Topic {
type TopicUser (line 56) | type TopicUser struct
method Replies (line 739) | func (t *TopicUser) Replies(offset int /*pFrag int, */, user *User) (r...
type TopicsRowMut (line 98) | type TopicsRowMut struct
type TopicsRow (line 104) | type TopicsRow struct
method WebSockets (line 143) | func (r *TopicsRow) WebSockets() *WsTopicsRow {
method WebSockets2 (line 148) | func (r *TopicsRow) WebSockets2(canMod bool) *WsTopicsRow {
type WsTopicsRow (line 117) | type WsTopicsRow struct
type TopicStmts (line 181) | type TopicStmts struct
function init (line 212) | func init() {
function handleLikedTopicReplies (line 352) | func handleLikedTopicReplies(tid int) error {
function handleTopicAttachments (line 375) | func handleTopicAttachments(tid int) error {
function handleReplyAttachments (line 383) | func handleReplyAttachments(rid int) error {
function handleAttachments (line 387) | func handleAttachments(stmt *sql.Stmt, id int) error {
function handleTopicReplies (line 411) | func handleTopicReplies(umap map[int]struct{}, uid, tid int) error {
function GetRidsForTopic (line 555) | func GetRidsForTopic(tid, offset int) (rids []int, e error) {
method Init (line 577) | func (ru *ReplyUser) Init(u *User) (group *Group, err error) {
method Init2 (line 631) | func (ru *ReplyUser) Init2() (group *Group, err error) {
method Init3 (line 677) | func (ru *ReplyUser) Init3(u *User, tu *TopicUser) (group *Group, err er...
function TopicByReplyID (line 1108) | func TopicByReplyID(rid int) (*Topic, error) {
function GetTopicUser (line 1117) | func GetTopicUser(user *User, tid int) (tu TopicUser, err error) {
function copyTopicToTopicUser (line 1163) | func copyTopicToTopicUser(t *Topic, u *User) (tu TopicUser) {
function BlankTopic (line 1197) | func BlankTopic() *Topic {
function BuildTopicURL (line 1201) | func BuildTopicURL(slug string, tid int) string {
function BuildTopicURLSb (line 1208) | func BuildTopicURLSb(sb *strings.Builder, slug string, tid int) {
function getTopicURLPrefix (line 1224) | func getTopicURLPrefix() string {
FILE: common/topic_cache.go
type TopicCache (line 9) | type TopicCache interface
type MemoryTopicCache (line 26) | type MemoryTopicCache struct
method Get (line 43) | func (s *MemoryTopicCache) Get(id int) (*Topic, error) {
method GetUnsafe (line 54) | func (s *MemoryTopicCache) GetUnsafe(id int) (*Topic, error) {
method BulkGet (line 63) | func (s *MemoryTopicCache) BulkGet(ids []int) (list []*Topic) {
method Set (line 74) | func (s *MemoryTopicCache) Set(it *Topic) error {
method Add (line 92) | func (s *MemoryTopicCache) Add(item *Topic) error {
method AddUnsafe (line 105) | func (s *MemoryTopicCache) AddUnsafe(item *Topic) error {
method Remove (line 115) | func (s *MemoryTopicCache) Remove(id int) error {
method RemoveMany (line 128) | func (s *MemoryTopicCache) RemoveMany(ids []int) error {
method RemoveUnsafe (line 144) | func (s *MemoryTopicCache) RemoveUnsafe(id int) error {
method Flush (line 154) | func (s *MemoryTopicCache) Flush() {
method Length (line 163) | func (s *MemoryTopicCache) Length() int {
method SetCapacity (line 168) | func (s *MemoryTopicCache) SetCapacity(cap int) {
method GetCapacity (line 174) | func (s *MemoryTopicCache) GetCapacity() int {
function NewMemoryTopicCache (line 35) | func NewMemoryTopicCache(cap int) *MemoryTopicCache {
FILE: common/topic_list.go
constant TopicListDefault (line 16) | TopicListDefault = iota
constant TopicListMostViewed (line 17) | TopicListMostViewed
constant TopicListWeekViews (line 18) | TopicListWeekViews
type TopicListHolder (line 21) | type TopicListHolder struct
type ForumTopicListHolder (line 27) | type ForumTopicListHolder struct
type TopicListInt (line 33) | type TopicListInt interface
type TopicListIntTest (line 40) | type TopicListIntTest interface
type DefaultTopicList (line 45) | type DefaultTopicList struct
method Tick (line 92) | func (tList *DefaultTopicList) Tick() error {
method defaultPagi (line 288) | func (tList *DefaultTopicList) defaultPagi() Paginator {
method setForumList (line 295) | func (tList *DefaultTopicList) setForumList(forums map[int]*ForumTopic...
method GetListByForum (line 338) | func (tList *DefaultTopicList) GetListByForum(f *Forum, page, orderby ...
method RawGetListByForum (line 358) | func (tList *DefaultTopicList) RawGetListByForum(f *Forum, page, order...
method GetListByGroup (line 419) | func (tList *DefaultTopicList) GetListByGroup(g *Group, page, orderby ...
method GetListByCanSee (line 447) | func (tList *DefaultTopicList) GetListByCanSee(canSee []int, page, ord...
method GetList (line 501) | func (tList *DefaultTopicList) GetList(page, orderby int, filterIDs []...
method getList (line 559) | func (tList *DefaultTopicList) getList(page, orderby, topicCount int, ...
function NewDefaultTopicList (line 70) | func NewDefaultTopicList(acc *qgen.Accumulator) (*DefaultTopicList, erro...
function ForumListToArgQ (line 742) | func ForumListToArgQ(forums []Forum) (argList []interface{}, qlist strin...
function ArgQToTopicCount (line 755) | func ArgQToTopicCount(argList []interface{}, qlist string) (topicCount i...
function ArgQToWeekViewTopicCount (line 770) | func ArgQToWeekViewTopicCount(argList []interface{}, qlist string) (topi...
function TopicCountInForums (line 784) | func TopicCountInForums(forums []Forum) (topicCount int, err error) {
FILE: common/topic_store.go
type TopicStore (line 26) | type TopicStore interface
type DefaultTopicStore (line 50) | type DefaultTopicStore struct
method DirtyGet (line 85) | func (s *DefaultTopicStore) DirtyGet(id int) *Topic {
method Get (line 99) | func (s *DefaultTopicStore) Get(id int) (t *Topic, e error) {
method BypassGet (line 112) | func (s *DefaultTopicStore) BypassGet(id int) (*Topic, error) {
method BulkGetMap (line 131) | func (s *DefaultTopicStore) BulkGetMap(ids []int) (list map[int]*Topic...
method Reload (line 204) | func (s *DefaultTopicStore) Reload(id int) error {
method Exists (line 215) | func (s *DefaultTopicStore) Exists(id int) bool {
method ClearIPs (line 219) | func (s *DefaultTopicStore) ClearIPs() error {
method LockMany (line 224) | func (s *DefaultTopicStore) LockMany(tids []int) (e error) {
method Create (line 264) | func (s *DefaultTopicStore) Create(fid int, name, content string, uid ...
method AddLastTopic (line 297) | func (s *DefaultTopicStore) AddLastTopic(t *Topic, fid int) error {
method Count (line 303) | func (s *DefaultTopicStore) Count() (count int) {
method CountUser (line 306) | func (s *DefaultTopicStore) CountUser(uid int) (count int) {
method CountMegaUser (line 309) | func (s *DefaultTopicStore) CountMegaUser(uid int) (count int) {
method CountBigUser (line 312) | func (s *DefaultTopicStore) CountBigUser(uid int) (count int) {
method SetCache (line 316) | func (s *DefaultTopicStore) SetCache(cache TopicCache) {
method GetCache (line 321) | func (s *DefaultTopicStore) GetCache() TopicCache {
function NewDefaultTopicStore (line 65) | func NewDefaultTopicStore(cache TopicCache) (*DefaultTopicStore, error) {
FILE: common/user.go
type User (line 30) | type User struct
method WebSockets (line 74) | func (u *User) WebSockets() *WsJSONUser {
method Me (line 97) | func (u *User) Me() *MeUser {
method Init (line 222) | func (u *User) Init() {
method CacheRemove (line 234) | func (u *User) CacheRemove() {
method Ban (line 241) | func (u *User) Ban(dur time.Duration, issuedBy int) error {
method Unban (line 245) | func (u *User) Unban() error {
method deleteScheduleGroupTx (line 249) | func (u *User) deleteScheduleGroupTx(tx *sql.Tx) error {
method setTempGroupTx (line 258) | func (u *User) setTempGroupTx(tx *sql.Tx, tempGroup int) error {
method ScheduleGroupUpdate (line 268) | func (u *User) ScheduleGroupUpdate(gid, issuedBy int, dur time.Duratio...
method RevertGroupUpdate (line 305) | func (u *User) RevertGroupUpdate() error {
method Activate (line 329) | func (u *User) Activate() (e error) {
method Delete (line 342) | func (u *User) Delete() error {
method DeletePosts (line 349) | func (u *User) DeletePosts() error {
method bindStmt (line 517) | func (u *User) bindStmt(stmt *sql.Stmt, params ...interface{}) (e erro...
method ChangeName (line 524) | func (u *User) ChangeName(name string) error {
method ChangeAvatar (line 528) | func (u *User) ChangeAvatar(avatar string) error {
method ScheduleAvatarResize (line 533) | func (u *User) ScheduleAvatarResize() (e error) {
method ChangeGroup (line 549) | func (u *User) ChangeGroup(group int) error {
method GetIP (line 553) | func (u *User) GetIP() string {
method UpdateIP (line 559) | func (u *User) UpdateIP(ip string) error {
method UpdatePrivacy (line 575) | func (u *User) UpdatePrivacy(profileComments, enableEmbeds int) error {
method Update (line 589) | func (u *User) Update(name, email string, group int) (err error) {
method IncreasePostStats (line 593) | func (u *User) IncreasePostStats(wcount int, topic bool) (err error) {
method countf (line 625) | func (u *User) countf(stmt *sql.Stmt) (count int) {
method RecalcPostStats (line 633) | func (u *User) RecalcPostStats() error {
method DecreasePostStats (line 661) | func (u *User) DecreasePostStats(wcount int, topic bool) (err error) {
method ResetPostStats (line 687) | func (u *User) ResetPostStats() error {
method Copy (line 694) | func (u *User) Copy() User {
method InitPerms (line 699) | func (u *User) InitPerms() {
type UserPrivacy (line 68) | type UserPrivacy struct
type WsJSONUser (line 84) | type WsJSONUser struct
type MeUser (line 106) | type MeUser struct
type UserStmts (line 130) | type UserStmts struct
function init (line 171) | func init() {
function InitPerms2 (line 726) | func InitPerms2(group int, superAdmin bool, tempGroup int) (perms *Perms...
function PrivacyAllowMessage (line 750) | func PrivacyAllowMessage(pu, u *User) (canMsg bool) {
function PrivacyCommentsShow (line 766) | func PrivacyCommentsShow(pu, u *User) (showComments bool) {
type GuestAvatar (line 786) | type GuestAvatar struct
function buildNoavatar (line 791) | func buildNoavatar(uid, width int) string {
function BuildAvatar (line 826) | func BuildAvatar(uid int, avatar string) (normalAvatar, microAvatar stri...
function SetPassword (line 845) | func SetPassword(uid int, password string) error {
function wordsToScore (line 855) | func wordsToScore(wcount int, topic bool) (score int) {
function BlankUser (line 871) | func BlankUser() *User {
function BuildProfileURL (line 876) | func BuildProfileURL(slug string, uid int) string {
function BuildProfileURLSb (line 883) | func BuildProfileURLSb(sb *strings.Builder, slug string, uid int) {
FILE: common/user_cache.go
type UserCache (line 9) | type UserCache interface
type MemoryUserCache (line 27) | type MemoryUserCache struct
method DeallocOverflow (line 44) | func (s *MemoryUserCache) DeallocOverflow(evictPriority bool) (evicted...
method Get (line 97) | func (s *MemoryUserCache) Get(id int) (*User, error) {
method Getn (line 107) | func (s *MemoryUserCache) Getn(id int) *User {
method BulkGet (line 115) | func (s *MemoryUserCache) BulkGet(ids []int) (list []*User) {
method GetUnsafe (line 126) | func (s *MemoryUserCache) GetUnsafe(id int) (*User, error) {
method Set (line 135) | func (s *MemoryUserCache) Set(item *User) error {
method Add (line 154) | func (s *MemoryUserCache) Add(item *User) error {
method AddUnsafe (line 167) | func (s *MemoryUserCache) AddUnsafe(item *User) error {
method Remove (line 177) | func (s *MemoryUserCache) Remove(id int) error {
method RemoveUnsafe (line 191) | func (s *MemoryUserCache) RemoveUnsafe(id int) error {
method BulkRemove (line 201) | func (s *MemoryUserCache) BulkRemove(ids []int) {
method Flush (line 216) | func (s *MemoryUserCache) Flush() {
method Length (line 225) | func (s *MemoryUserCache) Length() int {
method SetCapacity (line 230) | func (s *MemoryUserCache) SetCapacity(cap int) {
method GetCapacity (line 236) | func (s *MemoryUserCache) GetCapacity() int {
function NewMemoryUserCache (line 36) | func NewMemoryUserCache(cap int) *MemoryUserCache {
FILE: common/user_store.go
type UserStore (line 19) | type UserStore interface
type DefaultUserStore (line 43) | type DefaultUserStore struct
method DirtyGet (line 90) | func (s *DefaultUserStore) DirtyGet(id int) *User {
method scanUser (line 101) | func (s *DefaultUserStore) scanUser(r *sql.Row, u *User) (embeds int, ...
method Get (line 107) | func (s *DefaultUserStore) Get(id int) (*User, error) {
method Getn (line 130) | func (s *DefaultUserStore) Getn(id int) *User {
method GetByName (line 152) | func (s *DefaultUserStore) GetByName(name string) (*User, error) {
method BulkGetByName (line 170) | func (s *DefaultUserStore) BulkGetByName(names []string) (list []*User...
method RawBulkGetByNameForConvo (line 215) | func (s *DefaultUserStore) RawBulkGetByNameForConvo(f func(int, string...
method GetOffset (line 238) | func (s *DefaultUserStore) GetOffset(offset, perPage int) (users []*Us...
method SearchOffset (line 262) | func (s *DefaultUserStore) SearchOffset(name, email string, gid, offse...
method Each (line 286) | func (s *DefaultUserStore) Each(f func(*User) error) error {
method BulkGetMap (line 312) | func (s *DefaultUserStore) BulkGetMap(ids []int) (list map[int]*User, ...
method BypassGet (line 388) | func (s *DefaultUserStore) BypassGet(id int) (*User, error) {
method Reload (line 401) | func (s *DefaultUserStore) Reload(id int) error {
method Exists (line 412) | func (s *DefaultUserStore) Exists(id int) bool {
method ClearLastIPs (line 420) | func (s *DefaultUserStore) ClearLastIPs() error {
method Create (line 427) | func (s *DefaultUserStore) Create(name, password, email string, group ...
method Count (line 458) | func (s *DefaultUserStore) Count() (count int) {
method CountSearch (line 462) | func (s *DefaultUserStore) CountSearch(name, email string, gid int) (c...
method SetCache (line 466) | func (s *DefaultUserStore) SetCache(cache UserCache) {
method GetCache (line 471) | func (s *DefaultUserStore) GetCache() UserCache {
function NewDefaultUserStore (line 62) | func NewDefaultUserStore(cache UserCache) (*DefaultUserStore, error) {
FILE: common/utils.go
type Version (line 27) | type Version struct
method String (line 36) | func (ver *Version) String() (out string) {
function GenerateSafeString (line 49) | func GenerateSafeString(len int) (string, error) {
function GenerateStd32SafeString (line 60) | func GenerateStd32SafeString(len int) (string, error) {
function RelativeTimeFromString (line 70) | func RelativeTimeFromString(in string) (string, error) {
function RelativeTime (line 84) | func RelativeTime(t time.Time) string {
function ConvertPerfUnit (line 172) | func ConvertPerfUnit(quan float64) (out float64, unit string) {
function ConvertByteUnit (line 193) | func ConvertByteUnit(bytes float64) (float64, string) {
function ConvertByteInUnit (line 210) | func ConvertByteInUnit(bytes float64, unit string) (count float64) {
function FriendlyUnitToBytes (line 234) | func FriendlyUnitToBytes(quantity int, unit string) (bytes int, err erro...
function ConvertUnit (line 256) | func ConvertUnit(num int) (int, string) {
function ConvertFriendlyUnit (line 273) | func ConvertFriendlyUnit(num int) (int, string) {
function NameToSlug (line 317) | func NameToSlug(name string) (slug string) {
function HasSuspiciousEmail (line 343) | func HasSuspiciousEmail(email string) bool {
function unmarshalJsonFile (line 369) | func unmarshalJsonFile(name string, in interface{}) error {
function unmarshalJsonFileIgnore404 (line 377) | func unmarshalJsonFileIgnore404(name string, in interface{}) error {
function CanonEmail (line 387) | func CanonEmail(email string) string {
function createFile (line 400) | func createFile(name string) error {
function writeFile (line 409) | func writeFile(name, content string) (err error) {
function Stripslashes (line 426) | func Stripslashes(text string) string {
function WordCount (line 432) | func WordCount(input string) (count int) {
function GetLevel (line 454) | func GetLevel(score int) (level int) {
function GetLevelScore (line 475) | func GetLevelScore(getLevel int) (score int) {
function GetLevels (line 493) | func GetLevels(maxLevel int) []float64 {
function SanitiseSingleLine (line 514) | func SanitiseSingleLine(in string) string {
function SanitiseBody (line 524) | func SanitiseBody(in string) string {
function BuildSlug (line 530) | func BuildSlug(slug string, id int) string {
FILE: common/weak_passwords.go
type weakpassHolder (line 23) | type weakpassHolder struct
function InitWeakPasswords (line 28) | func InitWeakPasswords() error {
function WeakPassword (line 78) | func WeakPassword(password, username, email string) error {
FILE: common/websockets.go
function init (line 34) | func init() {
type WsTopicList (line 41) | type WsTopicList struct
function RouteWebsockets (line 49) | func RouteWebsockets(w http.ResponseWriter, r *http.Request, user *User)...
function ParseSEOURL (line 123) | func ParseSEOURL(urlBit string) (slug string, id int, err error) {
function wsPageResponses (line 133) | func wsPageResponses(wsUser *WSUser, conn *websocket.Conn, page string) {
function wsPageResume (line 216) | func wsPageResume(wsUser *WSUser, conn *websocket.Conn, page string, res...
function wsLeavePage (line 235) | func wsLeavePage(wsUser *WSUser, conn *websocket.Conn, page string) {
function adminStatsTicker (line 292) | func adminStatsTicker() {
FILE: common/widget.go
type WidgetStmts (line 13) | type WidgetStmts struct
function init (line 25) | func init() {
type Widget (line 41) | type Widget struct
method Delete (line 59) | func (w *Widget) Delete() error {
method Copy (line 76) | func (w *Widget) Copy() (ow *Widget) {
method Allowed (line 85) | func (w *Widget) Allowed(zone string, zoneid int) bool {
method Build (line 110) | func (w *Widget) Build(hvars interface{}) (string, error) {
type WidgetEdit (line 122) | type WidgetEdit struct
method Create (line 127) | func (w *WidgetEdit) Create() (int, error) {
method Commit (line 148) | func (w *WidgetEdit) Commit() error {
FILE: common/widget_search_and_filter.go
type filterForum (line 6) | type filterForum struct
type searchAndFilter (line 10) | type searchAndFilter struct
function widgetSearchAndFilter (line 15) | func widgetSearchAndFilter(widget *Widget, hvars interface{}) (out strin...
FILE: common/widget_store.go
type DefaultWidgetStore (line 10) | type DefaultWidgetStore struct
method Get (line 19) | func (s *DefaultWidgetStore) Get(id int) (*Widget, error) {
method set (line 29) | func (s *DefaultWidgetStore) set(w *Widget) {
method delete (line 35) | func (s *DefaultWidgetStore) delete(id int) {
function NewDefaultWidgetStore (line 15) | func NewDefaultWidgetStore() *DefaultWidgetStore {
FILE: common/widget_wol.go
type wolUsers (line 12) | type wolUsers struct
function wolInit (line 19) | func wolInit(w *Widget, sched *WidgetScheduler) error {
function wolGetUsers (line 24) | func wolGetUsers() ([]*User, int) {
function wolBuild (line 37) | func wolBuild(w *Widget, hvars interface{}) (string, error) {
function wolRender (line 44) | func wolRender(w *Widget, hvars interface{}) (string, error) {
function wolTick (line 57) | func wolTick(widget *Widget) error {
FILE: common/widget_wol_context.go
function wolContextRender (line 5) | func wolContextRender(widget *Widget, hvars interface{}) (string, error) {
FILE: common/widgets.go
type WidgetDock (line 22) | type WidgetDock struct
type WidgetDocks (line 27) | type WidgetDocks struct
type WidgetMenu (line 36) | type WidgetMenu struct
type WidgetMenuItem (line 41) | type WidgetMenuItem struct
type NameTextPair (line 47) | type NameTextPair struct
function preparseWidget (line 52) | func preparseWidget(w *Widget, wdata string) (e error) {
function GetDockList (line 114) | func GetDockList() []string {
function GetDock (line 123) | func GetDock(dock string) []*Widget {
function HasDock (line 137) | func HasDock(dock string) bool {
function HasWidgets (line 146) | func HasWidgets(dock string, h *Header) bool {
function BuildWidget (line 181) | func BuildWidget(dock string, h *Header) (sbody string) {
function BuildWidget2 (line 236) | func BuildWidget2(dock int, h *Header) (sbody string) {
function BuildWidget3 (line 283) | func BuildWidget3(dock int, h *Header) {
function HasWidgets2 (line 332) | func HasWidgets2(dock int, h *Header) bool {
function getDockWidgets (line 368) | func getDockWidgets(dock string) (widgets []*Widget, e error) {
function InitWidgets (line 392) | func InitWidgets() (fi error) {
function releaseWidgets (line 422) | func releaseWidgets(ws []*Widget) {
function setDock (line 431) | func setDock(dock string, widgets []*Widget) {
type WidgetScheduler (line 470) | type WidgetScheduler struct
method Add (line 475) | func (s *WidgetScheduler) Add(w *Widget) {
method Store (line 479) | func (s *WidgetScheduler) Store() {
method Tick (line 483) | func (s *WidgetScheduler) Tick() error {
FILE: common/word_filters.go
type WordFilter (line 11) | type WordFilter struct
type WordFilterDiff (line 16) | type WordFilterDiff struct
type WordFilterStore (line 25) | type WordFilterStore interface
type DefaultWordFilterStore (line 37) | type DefaultWordFilterStore struct
method ReloadAll (line 66) | func (s *DefaultWordFilterStore) ReloadAll() error {
method bypassGetAll (line 82) | func (s *DefaultWordFilterStore) bypassGetAll() (filters []*WordFilter...
method GetAll (line 101) | func (s *DefaultWordFilterStore) GetAll() (filters map[int]*WordFilter...
method Get (line 105) | func (s *DefaultWordFilterStore) Get(id int) (*WordFilter, error) {
method Create (line 112) | func (s *DefaultWordFilterStore) Create(find, replace string) (int, er...
method Delete (line 125) | func (s *DefaultWordFilterStore) Delete(id int) error {
method Update (line 133) | func (s *DefaultWordFilterStore) Update(id int, find, replace string) ...
method Length (line 142) | func (s *DefaultWordFilterStore) Length() int {
method EstCount (line 147) | func (s *DefaultWordFilterStore) EstCount() int {
method Count (line 152) | func (s *DefaultWordFilterStore) Count() (count int) {
function NewDefaultWordFilterStore (line 48) | func NewDefaultWordFilterStore(acc *qgen.Accumulator) (*DefaultWordFilte...
FILE: common/ws_hub.go
type WsHubImpl (line 17) | type WsHubImpl struct
method Start (line 41) | func (h *WsHubImpl) Start() {
method Tick (line 74) | func (h *WsHubImpl) Tick() error {
method GuestCount (line 297) | func (h *WsHubImpl) GuestCount() int {
method UserCount (line 303) | func (h *WsHubImpl) UserCount() (count int) {
method HasUser (line 314) | func (h *WsHubImpl) HasUser(uid int) (exists bool) {
method broadcastMessage (line 328) | func (h *WsHubImpl) broadcastMessage(msg string) error {
method getUser (line 348) | func (h *WsHubImpl) getUser(uid int) (wsUser *WSUser, err error) {
method getUsers (line 367) | func (h *WsHubImpl) getUsers(uids []int) (wsUsers []*WSUser, err error) {
method AllUsers (line 392) | func (h *WsHubImpl) AllUsers() (users []*User) {
method removeUser (line 405) | func (h *WsHubImpl) removeUser(uid int) {
method AddConn (line 417) | func (h *WsHubImpl) AddConn(user *User, conn *websocket.Conn) (*WSUser...
method RemoveConn (line 460) | func (h *WsHubImpl) RemoveConn(wsUser *WSUser, conn *websocket.Conn) {
method PushMessage (line 469) | func (h *WsHubImpl) PushMessage(targetUser int, msg string) error {
method pushAlert (line 477) | func (h *WsHubImpl) pushAlert(targetUser int, a Alert) error {
method pushAlerts (line 489) | func (h *WsHubImpl) pushAlerts(users []int, a Alert) error {
function init (line 32) | func init() {
function wsTopicListTick (line 78) | func wsTopicListTick(h *WsHubImpl) error {
FILE: common/ws_user.go
type WSUser (line 14) | type WSUser struct
method Ping (line 25) | func (u *WSUser) Ping() error {
method WriteAll (line 59) | func (u *WSUser) WriteAll(msg string) error {
method WriteToPage (line 75) | func (u *WSUser) WriteToPage(msg, page string) error {
method WriteToPageBytes (line 80) | func (u *WSUser) WriteToPageBytes(msg []byte, page string) error {
method WriteToPageBytesMulti (line 104) | func (u *WSUser) WriteToPageBytesMulti(msgs [][]byte, page string) err...
method CountSockets (line 129) | func (u *WSUser) CountSockets() int {
method AddSocket (line 135) | func (u *WSUser) AddSocket(conn *websocket.Conn, page string) {
method RemoveSocket (line 153) | func (u *WSUser) RemoveSocket(conn *websocket.Conn) {
method SetPageForSocket (line 200) | func (u *WSUser) SetPageForSocket(conn *websocket.Conn, page string) e...
method InPage (line 219) | func (u *WSUser) InPage(page string) bool {
method FinalizePage (line 233) | func (u *WSUser) FinalizePage(page string, h func()) {
type WSUserSocket (line 20) | type WSUserSocket struct
FILE: database.go
function InitDatabase (line 21) | func InitDatabase() (err error) {
FILE: experimental/counterTree/tree.go
constant debug (line 10) | debug = true
type TreeCounterNode (line 12) | type TreeCounterNode struct
type TreeTopicViewCounter (line 20) | type TreeTopicViewCounter struct
method Bump (line 30) | func (counter *TreeTopicViewCounter) Bump(signTopicID int64) {
function newTreeTopicViewCounter (line 24) | func newTreeTopicViewCounter() *TreeTopicViewCounter {
FILE: experimental/counterTree/tree_test.go
function TestCounter (line 8) | func TestCounter(t *testing.T) {
function TestScope (line 17) | func TestScope(t *testing.T) {
FILE: experimental/plugin_geoip.go
function init (line 9) | func init() {
function initGeoip (line 13) | func initGeoip(plugin *c.Plugin) (err error) {
function deactivateGeoip (line 18) | func deactivateGeoip(plugin *c.Plugin) {
FILE: experimental/plugin_sendmail.go
function init (line 16) | func init() {
function initSendmail (line 24) | func initSendmail(plugin *c.Plugin) error {
function activateSendmail (line 30) | func activateSendmail(plugin *c.Plugin) error {
function deactivateSendmail (line 40) | func deactivateSendmail(plugin *c.Plugin) {
function sendSendmail (line 44) | func sendSendmail(data ...interface{}) interface{} {
FILE: extend/adventure/lib/adventure.go
type Adventure (line 4) | type Adventure struct
method GetTable (line 13) | func (a *Adventure) GetTable() string {
FILE: extend/adventure/lib/adventure_store.go
type AdventureStore (line 3) | type AdventureStore interface
type DefaultAdventureStore (line 7) | type DefaultAdventureStore struct
FILE: extend/guilds/lib/guild_store.go
type GuildStore (line 11) | type GuildStore interface
type SQLGuildStore (line 16) | type SQLGuildStore struct
method Close (line 29) | func (s *SQLGuildStore) Close() {
method Get (line 34) | func (s *SQLGuildStore) Get(id int) (g *Guild, err error) {
method Create (line 40) | func (s *SQLGuildStore) Create(name, desc string, active bool, privacy...
function NewSQLGuildStore (line 21) | func NewSQLGuildStore() (*SQLGuildStore, error) {
FILE: extend/guilds/lib/guilds.go
type Guild (line 29) | type Guild struct
type Page (line 52) | type Page struct
type ListPage (line 63) | type ListPage struct
type MemberListPage (line 69) | type MemberListPage struct
type Member (line 79) | type Member struct
function PrebuildTmplList (line 90) | func PrebuildTmplList(user *c.User, h *c.Header) c.CTmpl {
function CommonAreaWidgets (line 113) | func CommonAreaWidgets(header *c.Header) {
function GuildWidgets (line 135) | func GuildWidgets(header *c.Header, guildItem *Guild) (success bool) {
function RouteGuildList (line 164) | func RouteGuildList(w http.ResponseWriter, r *http.Request, user *c.User...
function MiddleViewGuild (line 195) | func MiddleViewGuild(w http.ResponseWriter, r *http.Request, user *c.Use...
function RouteCreateGuild (line 218) | func RouteCreateGuild(w http.ResponseWriter, r *http.Request, user *c.Us...
function RouteCreateGuildSubmit (line 233) | func RouteCreateGuildSubmit(w http.ResponseWriter, r *http.Request, user...
function RouteMemberList (line 282) | func RouteMemberList(w http.ResponseWriter, r *http.Request, user *c.Use...
function AttachForum (line 347) | func AttachForum(guildID, fid int) error {
function UnattachForum (line 352) | func UnattachForum(fid int) error {
function BuildGuildURL (line 357) | func BuildGuildURL(slug string, id int) string {
function PreRenderViewForum (line 369) | func PreRenderViewForum(w http.ResponseWriter, r *http.Request, user *c....
function TrowAssign (line 387) | func TrowAssign(args ...interface{}) interface{} {
function TopicCreatePreLoop (line 397) | func TopicCreatePreLoop(args ...interface{}) interface{} {
function ForumCheck (line 409) | func ForumCheck(args ...interface{}) (skip bool, rerr c.RouteError) {
function Widgets (line 472) | func Widgets(args ...interface{}) interface{} {
FILE: extend/guilds/plugin_guilds.go
function init (line 11) | func init() {
function initGuilds (line 18) | func initGuilds(pl *c.Plugin) (err error) {
function deactivateGuilds (line 57) | func deactivateGuilds(pl *c.Plugin) {
function installGuilds (line 81) | func installGuilds(plugin *c.Plugin) error {
function uninstallGuilds (line 129) | func uninstallGuilds(plugin *c.Plugin) error {
FILE: extend/plugin_adventure.go
function init (line 6) | func init() {
function initAdventure (line 19) | func initAdventure(pl *c.Plugin) error {
function deactivateAdventure (line 24) | func deactivateAdventure(pl *c.Plugin) {
function installAdventure (line 27) | func installAdventure(pl *c.Plugin) error {
FILE: extend/plugin_bbcode.go
function init (line 29) | func init() {
function InitBbcode (line 33) | func InitBbcode(pl *c.Plugin) error {
function deactivateBbcode (line 57) | func deactivateBbcode(pl *c.Plugin) {
function BbcodeStripTags (line 62) | func BbcodeStripTags(msg string) string {
function BbcodeRegexParse (line 70) | func BbcodeRegexParse(msg string) string {
function bbcodeSimpleParse (line 85) | func bbcodeSimpleParse(msg string) string {
function BbcodeParseWithoutCode (line 135) | func BbcodeParseWithoutCode(msg string) string {
function BbcodeFullParse (line 226) | func BbcodeFullParse(msg string) string {
function bbcodeParseURL (line 361) | func bbcodeParseURL(i int, start int, lastTag int, mbytes []byte, outbyt...
function bbcodeParseRand (line 382) | func bbcodeParseRand(i int, start int, lastTag int, msgbytes []byte, out...
FILE: extend/plugin_heythere.go
function init (line 5) | func init() {
function initHeythere (line 10) | func initHeythere(plugin *c.Plugin) error {
function deactivateHeythere (line 15) | func deactivateHeythere(plugin *c.Plugin) {
function heythereReply (line 19) | func heythereReply(data ...interface{}) interface{} {
FILE: extend/plugin_hyperdrive.go
function init (line 21) | func init() {
function initHdrive (line 25) | func initHdrive(pl *c.Plugin) error {
function deactivateHdrive (line 35) | func deactivateHdrive(pl *c.Plugin) {
type Hyperspace (line 43) | type Hyperspace struct
function newHyperspace (line 49) | func newHyperspace() *Hyperspace {
function tickHdriveWol (line 58) | func tickHdriveWol(args ...interface{}) (skip bool, rerr c.RouteError) {
function tickHdrive (line 64) | func tickHdrive(args ...interface{}) (skip bool, rerr c.RouteError) {
function jumpHdriveTopicList (line 162) | func jumpHdriveTopicList(args ...interface{}) (skip bool, rerr c.RouteEr...
function jumpHdriveForumList (line 168) | func jumpHdriveForumList(args ...interface{}) (skip bool, rerr c.RouteEr...
function jumpHdrive (line 174) | func jumpHdrive( /*pg, */ p [3][]byte, args []interface{}) (skip bool, r...
FILE: extend/plugin_markdown.go
function init (line 27) | func init() {
function InitMarkdown (line 31) | func InitMarkdown(pl *c.Plugin) error {
function deactivateMarkdown (line 53) | func deactivateMarkdown(pl *c.Plugin) {
function MarkdownParse (line 59) | func MarkdownParse(msg string) string {
function _markdownParse (line 68) | func _markdownParse(msg string, n int) string {
function isMarkdownStartChar (line 307) | func isMarkdownStartChar(ch byte) bool { // char
function markdownFindChar (line 311) | func markdownFindChar(data string, index int, char byte) bool {
function markdownSkipUntilChar (line 321) | func markdownSkipUntilChar(data string, index int, char byte) int {
function markdownSkipUntilNotChar (line 330) | func markdownSkipUntilNotChar(data string, index int, char byte) int {
function markdownSkipUntilStrongSpace (line 339) | func markdownSkipUntilStrongSpace(data string, index int) int {
function markdownSkipUntilAsterisk (line 356) | func markdownSkipUntilAsterisk(data string, index int) int {
function markdownSkipList (line 372) | func markdownSkipList(data string, index int) int {
FILE: extend/plugin_skeleton.go
function init (line 5) | func init() {
function initSkeleton (line 34) | func initSkeleton(pl *c.Plugin) error { return nil }
function activateSkeleton (line 37) | func activateSkeleton(pl *c.Plugin) error { return nil }
function deactivateSkeleton (line 39) | func deactivateSkeleton(pl *c.Plugin) {}
FILE: gen_mssql.go
type Stmts (line 11) | type Stmts struct
function _gen_mssql (line 28) | func _gen_mssql() (err error) {
FILE: gen_mysql.go
type Stmts (line 13) | type Stmts struct
function _gen_mysql (line 30) | func _gen_mysql() (err error) {
FILE: gen_pgsql.go
type Stmts (line 11) | type Stmts struct
function _gen_pgsql (line 24) | func _gen_pgsql() (err error) {
FILE: gen_router.go
type HTTPSRedirect (line 900) | type HTTPSRedirect struct
method ServeHTTP (line 902) | func (red *HTTPSRedirect) ServeHTTP(w http.ResponseWriter, req *http.R...
method SuspiciousRequest (line 909) | func (r *GenRouter) SuspiciousRequest(req *http.Request, pre string) {
method ServeHTTP (line 926) | func (r *GenRouter) ServeHTTP(w http.ResponseWriter, req *http.Request) {
method routeSwitch (line 1297) | func (r *GenRouter) routeSwitch(w http.ResponseWriter, req *http.Request...
FILE: general_test.go
function ResetTables (line 30) | func ResetTables() (err error) {
function gloinit (line 49) | func gloinit() (e error) {
function rcfg (line 113) | func rcfg() *RouterConfig {
function init (line 120) | func init() {
function BenchmarkTopicAdminRouteParallel (line 132) | func BenchmarkTopicAdminRouteParallel(b *testing.B) {
function BenchmarkTopicAdminRouteParallelWithRouter (line 176) | func BenchmarkTopicAdminRouteParallelWithRouter(b *testing.B) {
function BenchmarkTopicAdminRouteParallelAlt (line 218) | func BenchmarkTopicAdminRouteParallelAlt(b *testing.B) {
function BenchmarkTopicAdminRouteParallelWithRouterAlt (line 222) | func BenchmarkTopicAdminRouteParallelWithRouterAlt(b *testing.B) {
function BenchmarkTopicAdminRouteParallelAltAlt (line 226) | func BenchmarkTopicAdminRouteParallelAltAlt(b *testing.B) {
function BenchmarkTopicGuestAdminRouteParallelWithRouterPre (line 230) | func BenchmarkTopicGuestAdminRouteParallelWithRouterPre(b *testing.B) {
function BenchmarkTopicGuestAdminRouteParallelWithRouter (line 234) | func BenchmarkTopicGuestAdminRouteParallelWithRouter(b *testing.B) {
function BenchmarkTopicGuestAdminRouteParallelWithRouterPre2 (line 289) | func BenchmarkTopicGuestAdminRouteParallelWithRouterPre2(b *testing.B) {
function BenchmarkTopicGuestAdminRouteParallelWithRouterGC (line 293) | func BenchmarkTopicGuestAdminRouteParallelWithRouterGC(b *testing.B) {
function BenchmarkTopicGuestRouteParallel (line 350) | func BenchmarkTopicGuestRouteParallel(b *testing.B) {
function BenchmarkForumsRouteAdminParallelWithRouterGC2Pre (line 379) | func BenchmarkForumsRouteAdminParallelWithRouterGC2Pre(b *testing.B) {
function BenchmarkForumsRouteAdminParallelWithRouterGC2 (line 383) | func BenchmarkForumsRouteAdminParallelWithRouterGC2(b *testing.B) {
function BenchmarkForumsRouteAdminParallelWithRouterGCBrotliPre (line 427) | func BenchmarkForumsRouteAdminParallelWithRouterGCBrotliPre(b *testing.B) {
function BenchmarkForumsRouteAdminParallelWithRouterGCBrotli (line 431) | func BenchmarkForumsRouteAdminParallelWithRouterGCBrotli(b *testing.B) {
function BenchmarkTopicRouteAdminParallelWithRouterGC2Pre (line 479) | func BenchmarkTopicRouteAdminParallelWithRouterGC2Pre(b *testing.B) {
function BenchmarkTopicRouteAdminParallelWithRouterGC2 (line 483) | func BenchmarkTopicRouteAdminParallelWithRouterGC2(b *testing.B) {
function BenchmarkTopicRouteAdminParallelWithRouterGCBrotliPre (line 527) | func BenchmarkTopicRouteAdminParallelWithRouterGCBrotliPre(b *testing.B) {
function BenchmarkTopicRouteAdminParallelWithRouterGCBrotli (line 531) | func BenchmarkTopicRouteAdminParallelWithRouterGCBrotli(b *testing.B) {
function BenchmarkTopicsRouteAdminParallelWithRouterGC2Pre (line 578) | func BenchmarkTopicsRouteAdminParallelWithRouterGC2Pre(b *testing.B) {
function BenchmarkTopicsRouteAdminParallelWithRouterGC2 (line 582) | func BenchmarkTopicsRouteAdminParallelWithRouterGC2(b *testing.B) {
function BenchmarkTopicsRouteAdminParallelWithRouterGCBrotliPre (line 626) | func BenchmarkTopicsRouteAdminParallelWithRouterGCBrotliPre(b *testing.B) {
function BenchmarkTopicsRouteAdminParallelWithRouterGCBrotli (line 630) | func BenchmarkTopicsRouteAdminParallelWithRouterGCBrotli(b *testing.B) {
function BenchmarkTopicsRouteAdminParallelWithRouterGCGzipPre (line 675) | func BenchmarkTopicsRouteAdminParallelWithRouterGCGzipPre(b *testing.B) {
function BenchmarkTopicsRouteAdminParallelWithRouterGCGzip (line 679) | func BenchmarkTopicsRouteAdminParallelWithRouterGCGzip(b *testing.B) {
function BenchmarkTopicGuestRouteParallelDebugMode (line 724) | func BenchmarkTopicGuestRouteParallelDebugMode(b *testing.B) {
function BenchmarkAlertsRouteAdminParallelWithRouterGCPre (line 751) | func BenchmarkAlertsRouteAdminParallelWithRouterGCPre(b *testing.B) {
function BenchmarkAlertsRouteAdminParallelWithRouterGC (line 755) | func BenchmarkAlertsRouteAdminParallelWithRouterGC(b *testing.B) {
function obRoute (line 799) | func obRoute(b *testing.B, path string) {
function obRouteNoError (line 808) | func obRouteNoError(b *testing.B, path string) {
function BenchmarkTopicsGuestRouteParallelWithRouter (line 817) | func BenchmarkTopicsGuestRouteParallelWithRouter(b *testing.B) {
function BenchmarkTopicsGuestJSRouteParallelWithRouter (line 821) | func BenchmarkTopicsGuestJSRouteParallelWithRouter(b *testing.B) {
function BenchmarkForumsGuestRouteParallelWithRouter (line 825) | func BenchmarkForumsGuestRouteParallelWithRouter(b *testing.B) {
function BenchmarkForumGuestRouteParallelWithRouter (line 829) | func BenchmarkForumGuestRouteParallelWithRouter(b *testing.B) {
function BenchmarkTopicGuestRouteParallelWithRouter (line 833) | func BenchmarkTopicGuestRouteParallelWithRouter(b *testing.B) {
function BenchmarkTopicGuestRouteParallelWithRouterAlt (line 837) | func BenchmarkTopicGuestRouteParallelWithRouterAlt(b *testing.B) {
function BenchmarkBadRouteGuestRouteParallelWithRouter (line 841) | func BenchmarkBadRouteGuestRouteParallelWithRouter(b *testing.B) {
function BenchmarkAlertsRouteGuestParallelWithRouter (line 845) | func BenchmarkAlertsRouteGuestParallelWithRouter(b *testing.B) {
function binit (line 851) | func binit(b *testing.B) {
type StashConfig (line 858) | type StashConfig struct
method Restore (line 869) | func (cfg *StashConfig) Restore() {
function NewStashConfig (line 863) | func NewStashConfig() *StashConfig {
function benchRoute (line 874) | func benchRoute(b *testing.B, path string) func(*testing.PB) {
function benchRouteNoError (line 895) | func benchRouteNoError(b *testing.B, path string) func(*testing.PB) {
function BenchmarkProfileGuestRouteParallelWithRouter (line 912) | func BenchmarkProfileGuestRouteParallelWithRouter(b *testing.B) {
function BenchmarkPopulateTopicWithRouter (line 916) | func BenchmarkPopulateTopicWithRouter(b *testing.B) {
function BenchmarkTopicAdminFullPageRouteParallelWithRouter (line 938) | func BenchmarkTopicAdminFullPageRouteParallelWithRouter(b *testing.B) {
function BenchmarkTopicGuestFullPageRouteParallelWithRouter (line 951) | func BenchmarkTopicGuestFullPageRouteParallelWithRouter(b *testing.B) {
function BenchmarkPopulateTopicMentionWithRouter (line 967) | func BenchmarkPopulateTopicMentionWithRouter(b *testing.B) {
function BenchmarkTopicMentionAdminFullPageRouteParallelWithRouter (line 994) | func BenchmarkTopicMentionAdminFullPageRouteParallelWithRouter(b *testin...
function BenchmarkTopicMentionGuestFullPageRouteParallelWithRouter (line 1004) | func BenchmarkTopicMentionGuestFullPageRouteParallelWithRouter(b *testin...
function BenchmarkPopulateTopic10MentionWithRouter (line 1011) | func BenchmarkPopulateTopic10MentionWithRouter(b *testing.B) {
function BenchmarkTopic10MentionAdminFullPageRouteParallelWithRouter (line 1038) | func BenchmarkTopic10MentionAdminFullPageRouteParallelWithRouter(b *test...
function BenchmarkTopic10MentionGuestFullPageRouteParallelWithRouter (line 1048) | func BenchmarkTopic10MentionGuestFullPageRouteParallelWithRouter(b *test...
function BenchmarkPopulateTopic1ReplyWithRouter (line 1055) | func BenchmarkPopulateTopic1ReplyWithRouter(b *testing.B) {
function BenchmarkTopic1ReplyAdminRouteParallelWithRouter (line 1080) | func BenchmarkTopic1ReplyAdminRouteParallelWithRouter(b *testing.B) {
function BenchmarkTopic1ReplyGuestRouteParallelWithRouter (line 1090) | func BenchmarkTopic1ReplyGuestRouteParallelWithRouter(b *testing.B) {
function BenchmarkPopulateTopic2UserWithRouter (line 1098) | func BenchmarkPopulateTopic2UserWithRouter(b *testing.B) {
function BenchmarkTopic2UserAdminFullPageRouteParallelWithRouter (line 1137) | func BenchmarkTopic2UserAdminFullPageRouteParallelWithRouter(b *testing....
function BenchmarkTopic2UserGuestFullPageRouteParallelWithRouter (line 1147) | func BenchmarkTopic2UserGuestFullPageRouteParallelWithRouter(b *testing....
function BenchmarkPopulateTopic3UserWithRouter (line 1154) | func BenchmarkPopulateTopic3UserWithRouter(b *testing.B) {
function BenchmarkTopic3UserAdminFullPageRouteParallelWithRouter (line 1196) | func BenchmarkTopic3UserAdminFullPageRouteParallelWithRouter(b *testing....
function BenchmarkTopic3UserGuestFullPageRouteParallelWithRouter (line 1206) | func BenchmarkTopic3UserGuestFullPageRouteParallelWithRouter(b *testing....
function BenchmarkQueryTopicParallel (line 1509) | func BenchmarkQueryTopicParallel(b *testing.B) {
function BenchmarkQueryPreparedTopicParallel (line 1530) | func BenchmarkQueryPreparedTopicParallel(b *testing.B) {
function BenchmarkUserGet (line 1558) | func BenchmarkUserGet(b *testing.B) {
function BenchmarkUserBypassGet (line 1576) | func BenchmarkUserBypassGet(b *testing.B) {
function BenchmarkQueriesSerial (line 1595) | func BenchmarkQueriesSerial(b *testing.B) {
function BenchmarkParserSerial (line 1656) | func BenchmarkParserSerial(b *testing.B) {
function BenchmarkBBCodePluginWithRegexpSerial (line 1676) | func BenchmarkBBCodePluginWithRegexpSerial(b *testing.B) {
function BenchmarkBBCodePluginWithoutCodeTagSerial (line 1699) | func BenchmarkBBCodePluginWithoutCodeTagSerial(b *testing.B) {
function BenchmarkBBCodePluginWithFullParserSerial (line 1719) | func BenchmarkBBCodePluginWithFullParserSerial(b *testing.B) {
function TestLevels (line 1739) | func TestLevels(t *testing.T) {
function TestSplittyThing (line 1936) | func TestSplittyThing(t *testing.T) {
FILE: install/install.go
type InstallAdapter (line 11) | type InstallAdapter interface
function Lookup (line 27) | func Lookup(name string) (InstallAdapter, bool) {
function createAdmin (line 32) | func createAdmin() error {
FILE: install/mssql.go
function init (line 24) | func init() {
type MssqlInstaller (line 28) | type MssqlInstaller struct
method SetConfig (line 38) | func (ins *MssqlInstaller) SetConfig(dbHost string, dbUsername string,...
method Name (line 47) | func (ins *MssqlInstaller) Name() string {
method DefaultPort (line 51) | func (ins *MssqlInstaller) DefaultPort() string {
method InitDatabase (line 55) | func (ins *MssqlInstaller) InitDatabase() (err error) {
method TableDefs (line 87) | func (ins *MssqlInstaller) TableDefs() (err error) {
method InitialData (line 126) | func (ins *MssqlInstaller) InitialData() (err error) {
method CreateAdmin (line 149) | func (ins *MssqlInstaller) CreateAdmin() error {
method DBHost (line 153) | func (ins *MssqlInstaller) DBHost() string {
method DBUsername (line 157) | func (ins *MssqlInstaller) DBUsername() string {
method DBPassword (line 161) | func (ins *MssqlInstaller) DBPassword() string {
method DBName (line 165) | func (ins *MssqlInstaller) DBName() string {
method DBPort (line 169) | func (ins *MssqlInstaller) DBPort() string {
FILE: install/mysql.go
function init (line 25) | func init() {
type MysqlInstaller (line 29) | type MysqlInstaller struct
method SetConfig (line 38) | func (ins *MysqlInstaller) SetConfig(dbHost string, dbUsername string,...
method Name (line 46) | func (ins *MysqlInstaller) Name() string {
method DefaultPort (line 50) | func (ins *MysqlInstaller) DefaultPort() string {
method dbExists (line 54) | func (ins *MysqlInstaller) dbExists(dbName string) (bool, error) {
method InitDatabase (line 65) | func (ins *MysqlInstaller) InitDatabase() (err error) {
method createTable (line 122) | func (ins *MysqlInstaller) createTable(f os.FileInfo) error {
method TableDefs (line 157) | func (ins *MysqlInstaller) TableDefs() (err error) {
method InitialData (line 187) | func (ins *MysqlInstaller) InitialData() error {
method CreateAdmin (line 212) | func (ins *MysqlInstaller) CreateAdmin() error {
method DBHost (line 216) | func (ins *MysqlInstaller) DBHost() string {
method DBUsername (line 220) | func (ins *MysqlInstaller) DBUsername() string {
method DBPassword (line 224) | func (ins *MysqlInstaller) DBPassword() string {
method DBName (line 228) | func (ins *MysqlInstaller) DBName() string {
method DBPort (line 232) | func (ins *MysqlInstaller) DBPort() string {
FILE: install/pgsql.go
function init (line 23) | func init() {
type PgsqlInstaller (line 27) | type PgsqlInstaller struct
method SetConfig (line 36) | func (ins *PgsqlInstaller) SetConfig(dbHost string, dbUsername string,...
method Name (line 44) | func (ins *PgsqlInstaller) Name() string {
method DefaultPort (line 48) | func (ins *PgsqlInstaller) DefaultPort() string {
method InitDatabase (line 52) | func (ins *PgsqlInstaller) InitDatabase() (err error) {
method TableDefs (line 77) | func (ins *PgsqlInstaller) TableDefs() (err error) {
method InitialData (line 81) | func (ins *PgsqlInstaller) InitialData() (err error) {
method CreateAdmin (line 85) | func (ins *PgsqlInstaller) CreateAdmin() error {
method DBHost (line 89) | func (ins *PgsqlInstaller) DBHost() string {
method DBUsername (line 93) | func (ins *PgsqlInstaller) DBUsername() string {
method DBPassword (line 97) | func (ins *PgsqlInstaller) DBPassword() string {
method DBName (line 101) | func (ins *PgsqlInstaller) DBName() string {
method DBPort (line 105) | func (ins *PgsqlInstaller) DBPort() string {
function pgEscapeBit (line 109) | func pgEscapeBit(bit string) string {
FILE: install/utils.go
constant saltLength (line 7) | saltLength int = 32
function GenerateSafeString (line 10) | func GenerateSafeString(length int) (string, error) {
function BcryptGeneratePassword (line 21) | func BcryptGeneratePassword(password string) (hash string, salt string, ...
FILE: main.go
type Globs (line 48) | type Globs struct
function init (line 53) | func init() {
function afterDBInit (line 57) | func afterDBInit() (err error) {
function storeInit (line 129) | func storeInit() (e error) {
function main (line 359) | func main() {
function startServer (line 670) | func startServer() {
FILE: misc_test.go
function miscinit (line 23) | func miscinit(t *testing.T) {
function recordMustExist (line 29) | func recordMustExist(t *testing.T, err error, errmsg string, args ...int...
function recordMustNotExist (line 39) | func recordMustNotExist(t *testing.T, err error, errmsg string, args ......
function TestUserStore (line 49) | func TestUserStore(t *testing.T) {
function userStoreTest (line 65) | func userStoreTest(t *testing.T, newUserID int) {
function expectNilErr (line 418) | func expectNilErr(t *testing.T, item error) {
function expectIntToBeX (line 425) | func expectIntToBeX(t *testing.T, item, expect int, errmsg string) {
function expect (line 432) | func expect(t *testing.T, item bool, errmsg string) {
function expectf (line 439) | func expectf(t *testing.T, item bool, errmsg string, args ...interface{}) {
function exp (line 446) | func exp(t *testing.T) func(bool, string) {
function expf (line 455) | func expf(t *testing.T) func(bool, string, ...interface{}) {
function TestPermsMiddleware (line 464) | func TestPermsMiddleware(t *testing.T) {
function TestTopicStore (line 522) | func TestTopicStore(t *testing.T) {
function topicStoreTest (line 544) | func topicStoreTest(t *testing.T, newID int, ip string) {
function TestForumStore (line 648) | func TestForumStore(t *testing.T) {
function TestForumPermsStore (line 830) | func TestForumPermsStore(t *testing.T) {
function TestGroupStore (line 946) | func TestGroupStore(t *testing.T) {
function TestGroupPromotions (line 1071) | func TestGroupPromotions(t *testing.T) {
function TestReplyStore (line 1130) | func TestReplyStore(t *testing.T) {
function testReplyStore (line 1146) | func testReplyStore(t *testing.T, newID int, ip string) {
function TestLikes (line 1255) | func TestLikes(t *testing.T) {
function TestAttachments (line 1314) | func TestAttachments(t *testing.T) {
function TestPolls (line 1488) | func TestPolls(t *testing.T) {
function TestSearch (line 1603) | func TestSearch(t *testing.T) {
function TestProfileReplyStore (line 1638) | func TestProfileReplyStore(t *testing.T) {
function testProfileReplyStore (line 1656) | func testProfileReplyStore(t *testing.T, newID int, ip string) {
function TestConvos (line 1694) | func TestConvos(t *testing.T) {
function TestActivityStream (line 1853) | func TestActivityStream(t *testing.T) {
function TestLogs (line 1916) | func TestLogs(t *testing.T) {
function TestRegLogs (line 1949) | func TestRegLogs(t *testing.T) {
function TestLoginLogs (line 2019) | func TestLoginLogs(t *testing.T) {
function TestPluginManager (line 2106) | func TestPluginManager(t *testing.T) {
function TestPhrases (line 2260) | func TestPhrases(t *testing.T) {
function TestMetaStore (line 2274) | func TestMetaStore(t *testing.T) {
function TestPages (line 2301) | func TestPages(t *testing.T) {
function TestWordFilters (line 2351) | func TestWordFilters(t *testing.T) {
function TestMFAStore (line 2418) | func TestMFAStore(t *testing.T) {
function TestSlugs (line 2470) | func TestSlugs(t *testing.T) {
function TestWidgets (line 2505) | func TestWidgets(t *testing.T) {
function TestForumActions (line 2572) | func TestForumActions(t *testing.T) {
function TestTopicList (line 2731) | func TestTopicList(t *testing.T) {
function TestUtils (line 2889) | func TestUtils(t *testing.T) {
function TestWeakPassword (line 2909) | func TestWeakPassword(t *testing.T) {
function TestAuth (line 2961) | func TestAuth(t *testing.T) {
function passwordTest (line 3022) | func passwordTest(t *testing.T, realPassword, hashedPassword string) {
function TestUserPrivacy (line 3057) | func TestUserPrivacy(t *testing.T) {
type METri (line 3162) | type METri struct
type METriList (line 3168) | type METriList struct
method Add (line 3172) | func (l *METriList) Add(args ...string) {
type CountTest (line 3183) | type CountTest struct
type CountTestList (line 3189) | type CountTestList struct
method Add (line 3193) | func (l *CountTestList) Add(name, msg string, expects int) {
function TestWordCount (line 3197) | func TestWordCount(t *testing.T) {
function TestTick (line 3235) | func TestTick(t *testing.T) {
function TestWSHub (line 3254) | func TestWSHub(t *testing.T) {
FILE: mssql.go
function init (line 23) | func init() {
function initMSSQL (line 28) | func initMSSQL() (err error) {
FILE: mysql.go
function init (line 22) | func init() {
function initMySQL (line 27) | func initMySQL() (err error) {
FILE: old_router.go
type Router (line 15) | type Router struct
method Handle (line 28) | func (router *Router) Handle(pattern string, handle http.Handler) {
method HandleFunc (line 35) | func (router *Router) HandleFunc(pattern string, handle func(http.Resp...
method ServeHTTP (line 42) | func (router *Router) ServeHTTP(w http.ResponseWriter, req *http.Reque...
function NewRouter (line 21) | func NewRouter() *Router {
FILE: parser_test.go
function TestPreparser (line 12) | func TestPreparser(t *testing.T) {
function TestParser (line 146) | func TestParser(t *testing.T) {
function TestPaginate (line 494) | func TestPaginate(t *testing.T) {
FILE: patcher/main.go
function addPatch (line 21) | func addPatch(index int, handle func(*bufio.Scanner) error) {
function main (line 25) | func main() {
function pressAnyKey (line 66) | func pressAnyKey(scanner *bufio.Scanner) {
function prepMySQL (line 74) | func prepMySQL() error {
type SchemaFile (line 85) | type SchemaFile struct
function loadSchema (line 92) | func loadSchema() (schemaFile SchemaFile, err error) {
function patcher (line 102) | func patcher(scanner *bufio.Scanner) error {
FILE: patcher/patches.go
function init (line 19) | func init() {
function bcol (line 59) | func bcol(col string, val bool) qgen.DBTableColumn {
function ccol (line 65) | func ccol(col string, size int, sdefault string) qgen.DBTableColumn {
function patch0 (line 69) | func patch0(scanner *bufio.Scanner) (err error) {
function patch1 (line 171) | func patch1(scanner *bufio.Scanner) error {
function patch2 (line 181) | func patch2(scanner *bufio.Scanner) error {
function patch3 (line 195) | func patch3(scanner *bufio.Scanner) error {
function patch4 (line 212) | func patch4(scanner *bufio.Scanner) error {
function patch5 (line 275) | func patch5(scanner *bufio.Scanner) error {
function patch6 (line 313) | func patch6(scanner *bufio.Scanner) error {
function patch7 (line 317) | func patch7(scanner *bufio.Scanner) error {
function renameRoutes (line 328) | func renameRoutes(routes map[string]string) error {
function patch8 (line 344) | func patch8(scanner *bufio.Scanner) error {
function patch9 (line 384) | func patch9(scanner *bufio.Scanner) error {
function patch10 (line 408) | func patch10(scanner *bufio.Scanner) error {
function patch11 (line 447) | func patch11(scanner *bufio.Scanner) error {
function patch12 (line 481) | func patch12(scanner *bufio.Scanner) error {
function patch13 (line 504) | func patch13(scanner *bufio.Scanner) error {
function patch14 (line 508) | func patch14(scanner *bufio.Scanner) error {
function patch15 (line 525) | func patch15(scanner *bufio.Scanner) error {
function patch16 (line 529) | func patch16(scanner *bufio.Scanner) error {
function patch17 (line 541) | func patch17(scanner *bufio.Scanner) error {
function patch18 (line 575) | func patch18(scanner *bufio.Scanner) error {
function patch19 (line 579) | func patch19(scanner *bufio.Scanner) error {
function patch20 (line 588) | func patch20(scanner *bufio.Scanner) error {
function patch21 (line 608) | func patch21(scanner *bufio.Scanner) error {
function patch22 (line 632) | func patch22(scanner *bufio.Scanner) error {
function patch23 (line 636) | func patch23(scanner *bufio.Scanner) error {
function patch24 (line 677) | func patch24(scanner *bufio.Scanner) error {
function patch25 (line 695) | func patch25(scanner *bufio.Scanner) error {
function patch26 (line 699) | func patch26(scanner *bufio.Scanner) error {
function patch27 (line 708) | func patch27(scanner *bufio.Scanner) error {
function patch28 (line 716) | func patch28(scanner *bufio.Scanner) error {
function WordCount (line 721) | func WordCount(input string) (count int) {
function patch29 (line 742) | func patch29(scanner *bufio.Scanner) error {
function patch30 (line 813) | func patch30(scanner *bufio.Scanner) error {
function patch31 (line 821) | func patch31(scanner *bufio.Scanner) (e error) {
function createTable (line 840) | func createTable(tbl, charset, collation string, cols []tC, keys []tK) e...
function patch32 (line 848) | func patch32(scanner *bufio.Scanner) error {
function patch33 (line 859) | func patch33(scanner *bufio.Scanner) error {
function patch34 (line 863) | func patch34(scanner *bufio.Scanner) error {
function patch35 (line 935) | func patch35(scanner *bufio.Scanner) error {
function patch36 (line 943) | func patch36(scanner *bufio.Scanner) error {
FILE: patcher/utils.go
function execStmt (line 6) | func execStmt(stmt *sql.Stmt, err error) error {
function eachUser (line 34) | func eachUser(handle func(int) error) error {
FILE: pgsql.go
function init (line 19) | func init() {
function initPgsql (line 24) | func initPgsql() (err error) {
function _escape_bit (line 67) | func _escape_bit(bit string) string {
FILE: plugin_test.go
type MEPair (line 15) | type MEPair struct
type MEPairList (line 20) | type MEPairList struct
method Add (line 24) | func (l *MEPairList) Add(msg, expects string) {
function TestBBCodeRender (line 28) | func TestBBCodeRender(t *testing.T) {
function TestMarkdownRender (line 185) | func TestMarkdownRender(t *testing.T) {
FILE: public/EQCSS.js
function l (line 648) | function l(a) { console.log(a) }
FILE: public/Sortable-1.4.0/Sortable.js
function Sortable (line 174) | function Sortable(el, options) {
function _cloneHide (line 970) | function _cloneHide(state) {
function _closest (line 979) | function _closest(/**HTMLElement*/el, /**String*/selector, /**HTMLElemen...
function _globalDragOver (line 1004) | function _globalDragOver(/**Event*/evt) {
function _on (line 1012) | function _on(el, event, fn) {
function _off (line 1017) | function _off(el, event, fn) {
function _toggleClass (line 1022) | function _toggleClass(el, name, state) {
function _css (line 1035) | function _css(el, prop, val) {
function _find (line 1060) | function _find(ctx, tagName, iterator) {
function _dispatchEvent (line 1078) | function _dispatchEvent(sortable, rootEl, name, targetEl, fromEl, startI...
function _onMove (line 1101) | function _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect) {
function _disableDraggable (line 1127) | function _disableDraggable(el) {
function _unsilent (line 1132) | function _unsilent() {
function _ghostIsLast (line 1138) | function _ghostIsLast(el, evt) {
function _generateId (line 1152) | function _generateId(el) {
function _index (line 1169) | function _index(el) {
function _throttle (line 1185) | function _throttle(callback, ms) {
function _extend (line 1206) | function _extend(dst, src) {
FILE: public/analytics.js
function memStuff (line 1) | function memStuff(window,document,Chartist) {
function perfStuff (line 39) | function perfStuff(window,document,Chartist) {
function convertByteUnit (line 83) | function convertByteUnit(bytes, places = 0) {
function convertPerfUnit (line 104) | function convertPerfUnit(quan, places = 0) {
function buildStatsChart (line 122) | function buildStatsChart(rawLabels, seriesData, timeRange, legendNames, ...
FILE: public/global.js
function pushNotice (line 18) | function pushNotice(msg) {
function ajaxError (line 27) | function ajaxError(xhr,status,e) {
function postLink (line 36) | function postLink(ev) {
function bindToAlerts (line 42) | function bindToAlerts() {
function addAlert (line 61) | function addAlert(msg,notice=false) {
function updateAlertList (line 95) | function updateAlertList(menuAlerts) {
function setAlertError (line 130) | function setAlertError(menuAlerts,msg) {
function loadAlerts (line 137) | function loadAlerts(menuAlerts,eTc=false) {
function SplitN (line 188) | function SplitN(data,ch,n) {
function wsAlertEvent (line 207) | function wsAlertEvent(dat) {
function runWebSockets (line 223) | function runWebSockets(resume=false) {
function getExt (line 368) | function getExt(name) {
function PageOffset (line 425) | function PageOffset(count,page,perPage) {
function LastPage (line 438) | function LastPage(count,perPage) {
function Paginate (line 441) | function Paginate(currentPage,lastPage,maxPages) {
function mainInit (line 456) | function mainInit(){
function bindPage (line 949) | function bindPage() {
function unbindPage (line 964) | function unbindPage() {
function bindTopic (line 972) | function bindTopic() {
function unbindTopic (line 1132) | function unbindTopic() {
FILE: public/init.js
function runHook (line 11) | function runHook(name,...args) {
function addHook (line 23) | function addHook(name,h) {
function runInitHook (line 30) | function runInitHook(name,...args) {
function addInitHook (line 34) | function addInitHook(name,h) {
function len (line 43) | function len(d) {return d.length}
function asyncGetScript (line 45) | function asyncGetScript(src) {
function notifyOnScript (line 71) | function notifyOnScript(src) {
function notifyOnScriptW (line 105) | function notifyOnScriptW(name,complete,success) {
function loadScript (line 119) | function loadScript(name,h,fail) {
function RelativeTime (line 142) | function RelativeTime(date) {return date}
function initPhrases (line 144) | function initPhrases(member,acp=false) {
function fetchPhrases (line 154) | function fetchPhrases(plist) {
FILE: public/member.js
function copyToClipboard (line 5) | function copyToClipboard(str) {
function uploadFileHandler (line 17) | function uploadFileHandler(fileList, maxFiles=5, step1 = () => {}, step2...
function uploadAttachHandler2 (line 56) | function uploadAttachHandler2() {
function uploadAttachHandler (line 101) | function uploadAttachHandler() {
function bindAttachManager (line 140) | function bindAttachManager() {
function bindAttachItems (line 168) | function bindAttachItems() {
function addPollInput (line 218) | function addPollInput() {
function modCancel (line 244) | function modCancel() {
function modCancelBind (line 257) | function modCancelBind() {
function modLinkBind (line 266) | function modLinkBind() {
FILE: public/profile_member.js
function handle_profile_hashbit (line 1) | function handle_profile_hashbit() {
FILE: pubnot/chartist/chartist.js
function recursiveConvert (line 454) | function recursiveConvert(value) {
function recursiveHighLow (line 583) | function recursiveHighLow(data) {
function gcd (line 710) | function gcd(p, q) {
function f (line 718) | function f(x) {
function safeIncrement (line 801) | function safeIncrement(value, increment) {
function updateCurrentOptions (line 1054) | function updateCurrentOptions(mediaEvent) {
function removeMediaQueryListeners (line 1075) | function removeMediaQueryListeners() {
function addEventHandler (line 1627) | function addEventHandler(event, handler) {
function removeEventHandler (line 1639) | function removeEventHandler(event, handler) {
function emit (line 1662) | function emit(event, data) {
function listToArray (line 1695) | function listToArray(list) {
function extend (line 1746) | function extend(properties, superProtoOverride) {
function cloneDefinitions (line 1774) | function cloneDefinitions() {
function update (line 1820) | function update(data, options, override) {
function detach (line 1857) | function detach() {
function on (line 1877) | function on(event, handler) {
function off (line 1889) | function off(event, handler) {
function initialize (line 1894) | function initialize() {
function Base (line 1942) | function Base(query, data, defaultOptions, options, responsiveOptions) {
function Svg (line 2010) | function Svg(name, attributes, className, parent, insertFirst) {
function attr (line 2050) | function attr(attributes, ns) {
function elem (line 2086) | function elem(name, attributes, className, insertFirst) {
function parent (line 2096) | function parent() {
function root (line 2106) | function root() {
function querySelector (line 2121) | function querySelector(selector) {
function querySelectorAll (line 2133) | function querySelectorAll(selector) {
function getNode (line 2144) | function getNode() {
function foreignObject (line 2158) | function foreignObject(content, attributes, className, insertFirst) {
function text (line 2187) | function text(t) {
function empty (line 2198) | function empty() {
function remove (line 2212) | function remove() {
function replace (line 2224) | function replace(newElement) {
function append (line 2237) | function append(element, insertFirst) {
function classes (line 2253) | function classes() {
function addClass (line 2264) | function addClass(names) {
function removeClass (line 2283) | function removeClass(names) {
function removeAllClasses (line 2299) | function removeAllClasses() {
function height (line 2311) | function height() {
function width (line 2321) | function width() {
function animate (line 2366) | function animate(animations, guided, eventEmitter) {
function SvgList (line 2554) | function SvgList(nodeList) {
function element (line 2621) | function element(command, params, pathElements, pos, relative, data) {
function forEachParam (line 2629) | function forEachParam(pathElements, cb) {
function SvgPath (line 2645) | function SvgPath(close, options) {
function position (line 2659) | function position(pos) {
function remove (line 2675) | function remove(count) {
function move (line 2690) | function move(x, y, relative, data) {
function line (line 2708) | function line(x, y, relative, data) {
function curve (line 2730) | function curve(x1, y1, x2, y2, x, y, relative, data) {
function arc (line 2757) | function arc(rx, ry, xAr, lAf, sf, x, y, relative, data) {
function parse (line 2777) | function parse(path) {
function stringify (line 2826) | function stringify() {
function scale (line 2848) | function scale(x, y) {
function translate (line 2863) | function translate(x, y) {
function transform (line 2882) | function transform(transformFnc) {
function clone (line 2899) | function clone(close) {
function splitByCommand (line 2916) | function splitByCommand(command) {
function join (line 2942) | function join(paths, close, options) {
function Axis (line 2996) | function Axis(units, chartRect, ticks, options) {
function createGridAndLabels (line 3006) | function createGridAndLabels(gridGroup, labelGroup, useForeignObject, ch...
function AutoScaleAxis (line 3114) | function AutoScaleAxis(axisUnit, data, chartRect, options) {
function projectValue (line 3130) | function projectValue(value) {
function FixedScaleAxis (line 3163) | function FixedScaleAxis(axisUnit, data, chartRect, options) {
function projectValue (line 3186) | function projectValue(value) {
function StepAxis (line 3215) | function StepAxis(axisUnit, data, chartRect, options) {
function projectValue (line 3226) | function projectValue(value, index) {
function createChart (line 3351) | function createChart(options) {
function Line (line 3635) | function Line(query, data, options, responsiveOptions) {
function createChart (line 3764) | function createChart(options) {
function Bar (line 4078) | function Bar(query, data, options, responsiveOptions) {
function determineAnchorPosition (line 4160) | function determineAnchorPosition(center, label, direction) {
function createChart (line 4179) | function createChart(options) {
function Pie (line 4468) | function Pie(query, data, options, responsiveOptions) {
FILE: pubnot/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.js
function reverse (line 16) | function reverse(sentString) {
function checkValidTags (line 24) | function checkValidTags(snippet) {
function cleanIt (line 49) | function cleanIt(htmlBefore, htmlAfter) {
FILE: pubnot/trumbowyg/plugins/colors/trumbowyg.colors.js
function hex (line 50) | function hex(x) {
function colorToHex (line 54) | function colorToHex(rgb) {
function colorTagHandler (line 65) | function colorTagHandler(element, trumbowyg) {
function buildDropdown (line 125) | function buildDropdown(fn, trumbowyg) {
FILE: pubnot/trumbowyg/plugins/emoji/trumbowyg.emoji.js
function buildDropdown (line 927) | function buildDropdown(trumbowyg) {
FILE: pubnot/trumbowyg/plugins/preformatted/trumbowyg.preformatted.js
function getSelectionParentElement (line 69) | function getSelectionParentElement() {
function strip (line 90) | function strip(html) {
function unwrapCode (line 101) | function unwrapCode() {
FILE: pubnot/trumbowyg/plugins/template/trumbowyg.template.js
function templateSelector (line 41) | function templateSelector(trumbowyg) {
FILE: pubnot/trumbowyg/plugins/upload/trumbowyg.upload.js
function getDeep (line 29) | function getDeep(object, propertyParts) {
function addXhrProgressEvent (line 223) | function addXhrProgressEvent() {
FILE: query_gen/acc_builders.go
type accDeleteBuilder (line 11) | type accDeleteBuilder struct
method Where (line 19) | func (b *accDeleteBuilder) Where(w string) *accDeleteBuilder {
method DateCutoff (line 27) | func (b *accDeleteBuilder) DateCutoff(col string, quantity int, unit s...
method DateOlderThan (line 32) | func (b *accDeleteBuilder) DateOlderThan(col string, quantity int, uni...
method DateOlderThanQ (line 37) | func (b *accDeleteBuilder) DateOlderThanQ(col, unit string) *accDelete...
method Prepare (line 47) | func (b *accDeleteBuilder) Prepare() *sql.Stmt {
method Exec (line 56) | func (b *accDeleteBuilder) Exec(args ...interface{}) (res sql.Result, ...
method Run (line 64) | func (b *accDeleteBuilder) Run(args ...interface{}) (int, error) {
type accUpdateBuilder (line 73) | type accUpdateBuilder struct
method Set (line 78) | func (u *accUpdateBuilder) Set(set string) *accUpdateBuilder {
method Where (line 83) | func (u *accUpdateBuilder) Where(where string) *accUpdateBuilder {
method DateCutoff (line 91) | func (b *accUpdateBuilder) DateCutoff(col string, quantity int, unit s...
method DateOlderThan (line 96) | func (b *accUpdateBuilder) DateOlderThan(col string, quantity int, uni...
method DateOlderThanQ (line 101) | func (b *accUpdateBuilder) DateOlderThanQ(col, unit string) *accUpdate...
method WhereQ (line 106) | func (b *accUpdateBuilder) WhereQ(sel *selectPrebuilder) *accUpdateBui...
method Prepare (line 111) | func (b *accUpdateBuilder) Prepare() *sql.Stmt {
method Stmt (line 117) | func (b *accUpdateBuilder) Stmt() *sql.Stmt {
method Exec (line 124) | func (b *accUpdateBuilder) Exec(args ...interface{}) (res sql.Result, ...
type AccBuilder (line 133) | type AccBuilder interface
type AccExec (line 137) | type AccExec interface
type AccSelectBuilder (line 141) | type AccSelectBuilder struct
method Columns (line 154) | func (b *AccSelectBuilder) Columns(cols string) *AccSelectBuilder {
method Cols (line 159) | func (b *AccSelectBuilder) Cols(cols string) *AccSelectBuilder {
method Where (line 164) | func (b *AccSelectBuilder) Where(where string) *AccSelectBuilder {
method In (line 173) | func (b *AccSelectBuilder) In(col string, inList []int) *AccSelectBuil...
method InPQuery (line 200) | func (b *AccSelectBuilder) InPQuery(col string, inList []int) (*sql.Ro...
method InQ (line 222) | func (b *AccSelectBuilder) InQ(col string, sb *AccSelectBuilder) *AccS...
method DateCutoff (line 228) | func (b *AccSelectBuilder) DateCutoff(col string, quantity int, unit s...
method DateOlderThanQ (line 233) | func (b *AccSelectBuilder) DateOlderThanQ(col, unit string) *AccSelect...
method Orderby (line 238) | func (b *AccSelectBuilder) Orderby(orderby string) *AccSelectBuilder {
method Limit (line 243) | func (b *AccSelectBuilder) Limit(limit string) *AccSelectBuilder {
method Prepare (line 248) | func (b *AccSelectBuilder) Prepare() *sql.Stmt {
method Stmt (line 257) | func (b *AccSelectBuilder) Stmt() *sql.Stmt {
method ComplexPrepare (line 266) | func (b *AccSelectBuilder) ComplexPrepare() *sql.Stmt {
method query (line 271) | func (b *AccSelectBuilder) query() (string, error) {
method Query (line 280) | func (b *AccSelectBuilder) Query(args ...interface{}) (*sql.Rows, erro...
method QueryRow (line 301) | func (b *AccSelectBuilder) QueryRow(args ...interface{}) *AccRowWrap {
method Each (line 310) | func (b *AccSelectBuilder) Each(h func(*sql.Rows) error) error {
method EachP (line 327) | func (b *AccSelectBuilder) EachP(h func(*sql.Rows) error, p ...interfa...
method EachInt (line 344) | func (b *AccSelectBuilder) EachInt(h func(int) error) error {
type AccRowWrap (line 288) | type AccRowWrap struct
method Scan (line 293) | func (w *AccRowWrap) Scan(dest ...interface{}) error {
type accInsertBuilder (line 366) | type accInsertBuilder struct
method Columns (line 374) | func (b *accInsertBuilder) Columns(cols string) *accInsertBuilder {
method Fields (line 379) | func (b *accInsertBuilder) Fields(fields string) *accInsertBuilder {
method Prepare (line 384) | func (b *accInsertBuilder) Prepare() *sql.Stmt {
method Exec (line 388) | func (b *accInsertBuilder) Exec(args ...interface{}) (res sql.Result, ...
method Run (line 396) | func (b *accInsertBuilder) Run(args ...interface{}) (int, error) {
type accBulkInsertBuilder (line 405) | type accBulkInsertBuilder struct
method Columns (line 413) | func (b *accBulkInsertBuilder) Columns(cols string) *accBulkInsertBuil...
method Fields (line 418) | func (b *accBulkInsertBuilder) Fields(fieldSet ...string) *accBulkInse...
method Prepare (line 423) | func (b *accBulkInsertBuilder) Prepare() *sql.Stmt {
method Exec (line 427) | func (b *accBulkInsertBuilder) Exec(args ...interface{}) (res sql.Resu...
method Run (line 435) | func (b *accBulkInsertBuilder) Run(args ...interface{}) (int, error) {
type accCountBuilder (line 444) | type accCountBuilder struct
method Where (line 455) | func (b *accCountBuilder) Where(w string) *accCountBuilder {
method Limit (line 463) | func (b *accCountBuilder) Limit(limit string) *accCountBuilder {
method DateCutoff (line 468) | func (b *accCountBuilder) DateCutoff(col string, quantity int, unit st...
method DateOlderThanQ (line 473) | func (b *accCountBuilder) DateOlderThanQ(col, unit string) *accCountBu...
method Prepare (line 479) | func (b *accCountBuilder) Prepare() *sql.Stmt {
method Stmt (line 489) | func (b *accCountBuilder) Stmt() *sql.Stmt {
method Total (line 499) | func (b *accCountBuilder) Total() (total int, e error) {
method TotalP (line 508) | func (b *accCountBuilder) TotalP(params ...interface{}) (total int, e ...
FILE: query_gen/accumulator.go
function NewAcc (line 13) | func NewAcc() *Accumulator {
type Accumulator (line 17) | type Accumulator struct
method SetConn (line 23) | func (acc *Accumulator) SetConn(conn *sql.DB) {
method SetAdapter (line 27) | func (acc *Accumulator) SetAdapter(name string) error {
method GetAdapter (line 36) | func (acc *Accumulator) GetAdapter() Adapter {
method FirstError (line 40) | func (acc *Accumulator) FirstError() error {
method RecordError (line 44) | func (acc *Accumulator) RecordError(err error) {
method prepare (line 53) | func (acc *Accumulator) prepare(res string, err error) *sql.Stmt {
method RawPrepare (line 67) | func (acc *Accumulator) RawPrepare(res string) *sql.Stmt {
method query (line 71) | func (acc *Accumulator) query(q string, args ...interface{}) (rows *sq...
method exec (line 79) | func (acc *Accumulator) exec(q string, args ...interface{}) (res sql.R...
method Tx (line 87) | func (acc *Accumulator) Tx(handler func(*TransactionBuilder) error) {
method SimpleSelect (line 102) | func (acc *Accumulator) SimpleSelect(table, columns, where, orderby, l...
method SimpleCount (line 106) | func (acc *Accumulator) SimpleCount(table, where, limit string) *sql.S...
method SimpleLeftJoin (line 110) | func (acc *Accumulator) SimpleLeftJoin(table1, table2, columns, joiner...
method SimpleInnerJoin (line 114) | func (acc *Accumulator) SimpleInnerJoin(table1, table2, columns, joine...
method CreateTable (line 118) | func (acc *Accumulator) CreateTable(table, charset, collation string, ...
method SimpleInsert (line 122) | func (acc *Accumulator) SimpleInsert(table, columns, fields string) *s...
method SimpleBulkInsert (line 126) | func (acc *Accumulator) SimpleBulkInsert(table, cols string, fieldSet ...
method SimpleInsertSelect (line 130) | func (acc *Accumulator) SimpleInsertSelect(ins DBInsert, sel DBSelect)...
method SimpleInsertLeftJoin (line 134) | func (acc *Accumulator) SimpleInsertLeftJoin(ins DBInsert, sel DBJoin)...
method SimpleInsertInnerJoin (line 138) | func (acc *Accumulator) SimpleInsertInnerJoin(ins DBInsert, sel DBJoin...
method SimpleUpdate (line 142) | func (acc *Accumulator) SimpleUpdate(table, set, where string) *sql.St...
method SimpleUpdateSelect (line 146) | func (acc *Accumulator) SimpleUpdateSelect(table, set, table2, cols, w...
method SimpleDelete (line 151) | func (acc *Accumulator) SimpleDelete(table, where string) *sql.Stmt {
method Purge (line 156) | func (acc *Accumulator) Purge(table string) *sql.Stmt {
method prepareTx (line 160) | func (acc *Accumulator) prepareTx(tx *sql.Tx, res string, err error) (...
method SimpleSelectTx (line 171) | func (acc *Accumulator) SimpleSelectTx(tx *sql.Tx, table, columns, whe...
method SimpleCountTx (line 176) | func (acc *Accumulator) SimpleCountTx(tx *sql.Tx, table, where, limit ...
method SimpleLeftJoinTx (line 181) | func (acc *Accumulator) SimpleLeftJoinTx(tx *sql.Tx, table1, table2, c...
method SimpleInnerJoinTx (line 186) | func (acc *Accumulator) SimpleInnerJoinTx(tx *sql.Tx, table1, table2, ...
method CreateTableTx (line 191) | func (acc *Accumulator) CreateTableTx(tx *sql.Tx, table, charset, coll...
method SimpleInsertTx (line 196) | func (acc *Accumulator) SimpleInsertTx(tx *sql.Tx, table, columns, fie...
method SimpleInsertSelectTx (line 201) | func (acc *Accumulator) SimpleInsertSelectTx(tx *sql.Tx, ins DBInsert,...
method SimpleInsertLeftJoinTx (line 206) | func (acc *Accumulator) SimpleInsertLeftJoinTx(tx *sql.Tx, ins DBInser...
method SimpleInsertInnerJoinTx (line 211) | func (acc *Accumulator) SimpleInsertInnerJoinTx(tx *sql.Tx, ins DBInse...
method SimpleUpdateTx (line 216) | func (acc *Accumulator) SimpleUpdateTx(tx *sql.Tx, table, set, where s...
method SimpleDeleteTx (line 221) | func (acc *Accumulator) SimpleDeleteTx(tx *sql.Tx, table, where string...
method PurgeTx (line 227) | func (acc *Accumulator) PurgeTx(tx *sql.Tx, table string) (stmt *sql.S...
method Delete (line 232) | func (acc *Accumulator) Delete(table string) *accDeleteBuilder {
method Update (line 236) | func (acc *Accumulator) Update(table string) *accUpdateBuilder {
method Select (line 240) | func (acc *Accumulator) Select(table string) *AccSelectBuilder {
method Exists (line 244) | func (acc *Accumulator) Exists(tbl, col string) *AccSelectBuilder {
method Insert (line 248) | func (acc *Accumulator) Insert(table string) *accInsertBuilder {
method BulkInsert (line 252) | func (acc *Accumulator) BulkInsert(table string) *accBulkInsertBuilder {
method Count (line 256) | func (acc *Accumulator) Count(table string) *accCountBuilder {
method SimpleModel (line 266) | func (acc *Accumulator) SimpleModel(tbl, colstr, primary string) Simpl...
method Model (line 309) | func (acc *Accumulator) Model(table string) *accModelBuilder {
type SimpleModel (line 260) | type SimpleModel struct
method Delete (line 285) | func (m SimpleModel) Delete(keyVal interface{}) error {
method Update (line 290) | func (m SimpleModel) Update(args ...interface{}) error {
method Create (line 295) | func (m SimpleModel) Create(args ...interface{}) error {
method CreateID (line 300) | func (m SimpleModel) CreateID(args ...interface{}) (int, error) {
type accModelBuilder (line 313) | type accModelBuilder struct
method Primary (line 320) | func (b *accModelBuilder) Primary(col string) *accModelBuilder {
FILE: query_gen/builder.go
function init (line 11) | func init() {
type builder (line 16) | type builder struct
method Accumulator (line 21) | func (b *builder) Accumulator() *Accumulator {
method Init (line 26) | func (b *builder) Init(adapter string, config map[string]string) error {
method SetConn (line 37) | func (b *builder) SetConn(conn *sql.DB) {
method GetConn (line 41) | func (b *builder) GetConn() *sql.DB {
method SetAdapter (line 45) | func (b *builder) SetAdapter(name string) error {
method GetAdapter (line 54) | func (b *builder) GetAdapter() Adapter {
method DbVersion (line 58) | func (b *builder) DbVersion() (dbVersion string) {
method Begin (line 63) | func (b *builder) Begin() (*sql.Tx, error) {
method Tx (line 67) | func (b *builder) Tx(h func(*TransactionBuilder) error) error {
method prepare (line 80) | func (b *builder) prepare(res string, err error) (*sql.Stmt, error) {
method SimpleSelect (line 87) | func (b *builder) SimpleSelect(table, columns, where, orderby, limit s...
method SimpleCount (line 91) | func (b *builder) SimpleCount(table, where, limit string) (stmt *sql.S...
method SimpleLeftJoin (line 95) | func (b *builder) SimpleLeftJoin(table1, table2, columns, joiners, whe...
method SimpleInnerJoin (line 99) | func (b *builder) SimpleInnerJoin(table1, table2, columns, joiners, wh...
method DropTable (line 103) | func (b *builder) DropTable(table string) (stmt *sql.Stmt, err error) {
method CreateTable (line 107) | func (build *builder) CreateTable(table, charset, collation string, co...
method AddColumn (line 111) | func (b *builder) AddColumn(table string, column DBTableColumn, key *D...
method DropColumn (line 115) | func (b *builder) DropColumn(table, colName string) (stmt *sql.Stmt, e...
method RenameColumn (line 119) | func (b *builder) RenameColumn(table, oldName, newName string) (stmt *...
method ChangeColumn (line 123) | func (b *builder) ChangeColumn(table, colName string, col DBTableColum...
method SetDefaultColumn (line 127) | func (b *builder) SetDefaultColumn(table, colName, colType, defaultStr...
method AddIndex (line 131) | func (b *builder) AddIndex(table, iname, colname string) (stmt *sql.St...
method AddKey (line 135) | func (b *builder) AddKey(table, column string, key DBTableKey) (stmt *...
method RemoveIndex (line 139) | func (b *builder) RemoveIndex(table, iname string) (stmt *sql.Stmt, er...
method AddForeignKey (line 143) | func (b *builder) AddForeignKey(table, column, ftable, fcolumn string,...
method SimpleInsert (line 147) | func (b *builder) SimpleInsert(table, columns, fields string) (stmt *s...
method SimpleInsertSelect (line 151) | func (b *builder) SimpleInsertSelect(ins DBInsert, sel DBSelect) (stmt...
method SimpleInsertLeftJoin (line 155) | func (b *builder) SimpleInsertLeftJoin(ins DBInsert, sel DBJoin) (stmt...
method SimpleInsertInnerJoin (line 159) | func (b *builder) SimpleInsertInnerJoin(ins DBInsert, sel DBJoin) (stm...
method SimpleUpdate (line 163) | func (b *builder) SimpleUpdate(table, set, where string) (stmt *sql.St...
method SimpleDelete (line 167) | func (b *builder) SimpleDelete(table, where string) (stmt *sql.Stmt, e...
method Purge (line 172) | func (b *builder) Purge(table string) (stmt *sql.Stmt, err error) {
method prepareTx (line 176) | func (b *builder) prepareTx(tx *sql.Tx, res string, err error) (*sql.S...
method SimpleSelectTx (line 184) | func (b *builder) SimpleSelectTx(tx *sql.Tx, table, columns, where, or...
method SimpleCountTx (line 189) | func (b *builder) SimpleCountTx(tx *sql.Tx, table, where, limit string...
method SimpleLeftJoinTx (line 194) | func (b *builder) SimpleLeftJoinTx(tx *sql.Tx, table1, table2, columns...
method SimpleInnerJoinTx (line 199) | func (b *builder) SimpleInnerJoinTx(tx *sql.Tx, table1, table2, column...
method CreateTableTx (line 204) | func (b *builder) CreateTableTx(tx *sql.Tx, table, charset, collation ...
method SimpleInsertTx (line 209) | func (b *builder) SimpleInsertTx(tx *sql.Tx, table, columns, fields st...
method SimpleInsertSelectTx (line 214) | func (b *builder) SimpleInsertSelectTx(tx *sql.Tx, ins DBInsert, sel D...
method SimpleInsertLeftJoinTx (line 219) | func (b *builder) SimpleInsertLeftJoinTx(tx *sql.Tx, ins DBInsert, sel...
method SimpleInsertInnerJoinTx (line 224) | func (b *builder) SimpleInsertInnerJoinTx(tx *sql.Tx, ins DBInsert, se...
method SimpleUpdateTx (line 229) | func (b *builder) SimpleUpdateTx(tx *sql.Tx, table, set, where string)...
method SimpleDeleteTx (line 234) | func (b *builder) SimpleDeleteTx(tx *sql.Tx, table, where string) (stm...
method PurgeTx (line 240) | func (b *builder) PurgeTx(tx *sql.Tx, table string) (stmt *sql.Stmt, e...
FILE: query_gen/install.go
function init (line 5) | func init() {
type DBInstallInstruction (line 9) | type DBInstallInstruction struct
type DBInstallTable (line 16) | type DBInstallTable struct
type installer (line 26) | type installer struct
method SetAdapter (line 33) | func (i *installer) SetAdapter(name string) error {
method SetAdapterInstance (line 42) | func (i *installer) SetAdapterInstance(a Adapter) {
method AddPlugins (line 47) | func (i *installer) AddPlugins(plugins ...QueryPlugin) {
method CreateTable (line 51) | func (i *installer) CreateTable(table, charset, collation string, cols...
method AddIndex (line 71) | func (i *installer) AddIndex(table, iname, colName string) error {
method AddKey (line 88) | func (i *installer) AddKey(table, col string, key DBTableKey) error {
method SimpleInsert (line 106) | func (i *installer) SimpleInsert(table, columns, fields string) error {
method SimpleBulkInsert (line 123) | func (i *installer) SimpleBulkInsert(table, cols string, fieldSet []st...
method RunHook (line 140) | func (i *installer) RunHook(name string, args ...interface{}) error {
method Write (line 150) | func (i *installer) Write() error {
FILE: query_gen/micro_builders.go
type dateCutoff (line 3) | type dateCutoff struct
type prebuilder (line 10) | type prebuilder struct
method Select (line 14) | func (b *prebuilder) Select(nlist ...string) *selectPrebuilder {
method Count (line 19) | func (b *prebuilder) Count(nlist ...string) *selectPrebuilder {
method Insert (line 24) | func (b *prebuilder) Insert(nlist ...string) *insertPrebuilder {
method Update (line 29) | func (b *prebuilder) Update(nlist ...string) *updatePrebuilder {
method Delete (line 34) | func (b *prebuilder) Delete(nlist ...string) *deletePrebuilder {
type deletePrebuilder (line 39) | type deletePrebuilder struct
method Table (line 48) | func (b *deletePrebuilder) Table(table string) *deletePrebuilder {
method Where (line 53) | func (b *deletePrebuilder) Where(where string) *deletePrebuilder {
method FromAcc (line 62) | func (b *deletePrebuilder) FromAcc(acc *accDeleteBuilder) *deletePrebu...
method Text (line 69) | func (b *deletePrebuilder) Text() (string, error) {
method Parse (line 73) | func (b *deletePrebuilder) Parse() {
type updatePrebuilder (line 77) | type updatePrebuilder struct
method Table (line 92) | func (b *updatePrebuilder) Table(table string) *updatePrebuilder {
method Set (line 97) | func (b *updatePrebuilder) Set(set string) *updatePrebuilder {
method Where (line 102) | func (b *updatePrebuilder) Where(where string) *updatePrebuilder {
method WhereQ (line 110) | func (b *updatePrebuilder) WhereQ(sel *selectPrebuilder) *updatePrebui...
method Text (line 115) | func (b *updatePrebuilder) Text() (string, error) {
method Parse (line 119) | func (b *updatePrebuilder) Parse() {
function qUpdate (line 88) | func qUpdate(table string, set string, where string) *updatePrebuilder {
type selectPrebuilder (line 123) | type selectPrebuilder struct
method Table (line 137) | func (b *selectPrebuilder) Table(table string) *selectPrebuilder {
method Columns (line 142) | func (b *selectPrebuilder) Columns(columns string) *selectPrebuilder {
method Where (line 147) | func (b *selectPrebuilder) Where(where string) *selectPrebuilder {
method InQ (line 155) | func (b *selectPrebuilder) InQ(subBuilder *selectPrebuilder) *selectPr...
method Orderby (line 160) | func (b *selectPrebuilder) Orderby(orderby string) *selectPrebuilder {
method Limit (line 165) | func (b *selectPrebuilder) Limit(limit string) *selectPrebuilder {
method FromAcc (line 171) | func (b *selectPrebuilder) FromAcc(acc *AccSelectBuilder) *selectPrebu...
method FromCountAcc (line 188) | func (b *selectPrebuilder) FromCountAcc(acc *accCountBuilder) *selectP...
method Text (line 202) | func (b *selectPrebuilder) Text() (string, error) {
method Parse (line 207) | func (b *selectPrebuilder) Parse() {
type insertPrebuilder (line 211) | type insertPrebuilder struct
method Table (line 220) | func (b *insertPrebuilder) Table(table string) *insertPrebuilder {
method Columns (line 225) | func (b *insertPrebuilder) Columns(columns string) *insertPrebuilder {
method Fields (line 230) | func (b *insertPrebuilder) Fields(fields string) *insertPrebuilder {
method Text (line 235) | func (b *insertPrebuilder) Text() (string, error) {
method Parse (line 239) | func (b *insertPrebuilder) Parse() {
function optString (line 278) | func optString(nlist []string, defaultStr string) string {
FILE: query_gen/mssql.go
function init (line 12) | func init() {
type MssqlAdapter (line 18) | type MssqlAdapter struct
method GetName (line 26) | func (a *MssqlAdapter) GetName() string {
method GetStmt (line 30) | func (a *MssqlAdapter) GetStmt(name string) DBStmt {
method GetStmts (line 34) | func (a *MssqlAdapter) GetStmts() map[string]DBStmt {
method BuildConn (line 39) | func (a *MssqlAdapter) BuildConn(config map[string]string) (*sql.DB, e...
method DbVersion (line 43) | func (a *MssqlAdapter) DbVersion() string {
method DropTable (line 47) | func (a *MssqlAdapter) DropTable(name, table string) (string, error) {
method CreateTable (line 59) | func (a *MssqlAdapter) CreateTable(name, table, charset, collation str...
method parseColumn (line 92) | func (a *MssqlAdapter) parseColumn(column DBTableColumn) (col DBTableC...
method AddColumn (line 139) | func (a *MssqlAdapter) AddColumn(name, table string, column DBTableCol...
method DropColumn (line 151) | func (a *MssqlAdapter) DropColumn(name, table, colName string) (string...
method RenameColumn (line 156) | func (a *MssqlAdapter) RenameColumn(name, table, oldName, newName stri...
method ChangeColumn (line 161) | func (a *MssqlAdapter) ChangeColumn(name, table, colName string, col D...
method SetDefaultColumn (line 166) | func (a *MssqlAdapter) SetDefaultColumn(name, table, colName, colType,...
method AddIndex (line 175) | func (a *MssqlAdapter) AddIndex(name, table, iname, colname string) (s...
method AddKey (line 190) | func (a *MssqlAdapter) AddKey(name, table, column string, key DBTableK...
method RemoveIndex (line 202) | func (a *MssqlAdapter) RemoveIndex(name, table, iname string) (string,...
method AddForeignKey (line 214) | func (a *MssqlAdapter) AddForeignKey(name, table, column, ftable, fcol...
method SimpleInsert (line 231) | func (a *MssqlAdapter) SimpleInsert(name, table, cols, fields string) ...
method SimpleBulkInsert (line 237) | func (a *MssqlAdapter) SimpleBulkInsert(name, table, cols string, fiel...
method simpleBulkInsert (line 243) | func (a *MssqlAdapter) simpleBulkInsert(name, table, cols string, fiel...
method SimpleReplace (line 288) | func (a *MssqlAdapter) SimpleReplace(name, table, columns, fields stri...
method SimpleUpsert (line 323) | func (a *MssqlAdapter) SimpleUpsert(name, table, columns, fields, wher...
method SimpleUpdate (line 414) | func (a *MssqlAdapter) SimpleUpdate(up *updatePrebuilder) (string, err...
method SimpleUpdateSelect (line 476) | func (a *MssqlAdapter) SimpleUpdateSelect(b *updatePrebuilder) (string...
method SimpleDelete (line 480) | func (a *MssqlAdapter) SimpleDelete(name string, table string, where s...
method ComplexDelete (line 517) | func (a *MssqlAdapter) ComplexDelete(b *deletePrebuilder) (string, err...
method Purge (line 522) | func (a *MssqlAdapter) Purge(name string, table string) (string, error) {
method SimpleSelect (line 531) | func (a *MssqlAdapter) SimpleSelect(name string, table string, columns...
method ComplexSelect (line 623) | func (a *MssqlAdapter) ComplexSelect(preBuilder *selectPrebuilder) (st...
method SimpleLeftJoin (line 627) | func (a *MssqlAdapter) SimpleLeftJoin(name string, table1 string, tabl...
method SimpleInnerJoin (line 752) | func (a *MssqlAdapter) SimpleInnerJoin(name string, table1 string, tab...
method SimpleInsertSelect (line 878) | func (a *MssqlAdapter) SimpleInsertSelect(name string, ins DBInsert, s...
method simpleJoin (line 989) | func (a *MssqlAdapter) simpleJoin(name string, ins DBInsert, sel DBJoi...
method SimpleInsertLeftJoin (line 1114) | func (a *MssqlAdapter) SimpleInsertLeftJoin(name string, ins DBInsert,...
method SimpleInsertInnerJoin (line 1118) | func (a *MssqlAdapter) SimpleInsertInnerJoin(name string, ins DBInsert...
method SimpleCount (line 1122) | func (a *MssqlAdapter) SimpleCount(name, table, where, limit string) (...
method Builder (line 1160) | func (a *MssqlAdapter) Builder() *prebuilder {
method Write (line 1164) | func (a *MssqlAdapter) Write() error {
method pushStatement (line 1216) | func (a *MssqlAdapter) pushStatement(name, stype, q string) {
method stringyType (line 1224) | func (a *MssqlAdapter) stringyType(ct string) bool {
method SetPrimaryKeys (line 1233) | func (a *MssqlAdapter) SetPrimaryKeys(keys map[string]string) {
type SetPrimaryKeys (line 1229) | type SetPrimaryKeys interface
FILE: query_gen/mysql.go
function init (line 19) | func init() {
type MysqlAdapter (line 25) | type MysqlAdapter struct
method GetName (line 32) | func (a *MysqlAdapter) GetName() string {
method GetStmt (line 36) | func (a *MysqlAdapter) GetStmt(name string) DBStmt {
method GetStmts (line 40) | func (a *MysqlAdapter) GetStmts() map[string]DBStmt {
method BuildConn (line 45) | func (a *MysqlAdapter) BuildConn(config map[string]string) (*sql.DB, e...
method DbVersion (line 83) | func (a *MysqlAdapter) DbVersion() string {
method DropTable (line 87) | func (a *MysqlAdapter) DropTable(name, table string) (string, error) {
method CreateTable (line 97) | func (a *MysqlAdapter) CreateTable(name, table, charset, collation str...
method DropColumn (line 204) | func (a *MysqlAdapter) DropColumn(name, table, colName string) (string...
method RenameColumn (line 211) | func (a *MysqlAdapter) RenameColumn(name, table, oldName, newName stri...
method ChangeColumn (line 217) | func (a *MysqlAdapter) ChangeColumn(name, table, colName string, col D...
method SetDefaultColumn (line 225) | func (a *MysqlAdapter) SetDefaultColumn(name, table, colName, colType,...
method parseColumn (line 243) | func (a *MysqlAdapter) parseColumn(col DBTableColumn) (ocol DBTableCol...
method AddColumn (line 283) | func (a *MysqlAdapter) AddColumn(name, table string, col DBTableColumn...
method AddIndex (line 306) | func (a *MysqlAdapter) AddIndex(name, table, iname, colname string) (s...
method AddKey (line 325) | func (a *MysqlAdapter) AddKey(name, table, cols string, key DBTableKey...
method RemoveIndex (line 353) | func (a *MysqlAdapter) RemoveIndex(name, table, iname string) (string,...
method AddForeignKey (line 367) | func (a *MysqlAdapter) AddForeignKey(name, table, col, ftable, fcolumn...
method SimpleInsert (line 394) | func (a *MysqlAdapter) SimpleInsert(name, table, cols, fields string) ...
method SimpleBulkInsert (line 446) | func (a *MysqlAdapter) SimpleBulkInsert(name, table, cols string, fiel...
method buildColumns (line 506) | func (a *MysqlAdapter) buildColumns(cols string) string {
method SimpleReplace (line 550) | func (a *MysqlAdapter) SimpleReplace(name, table, cols, fields string)...
method SimpleUpsert (line 572) | func (a *MysqlAdapter) SimpleUpsert(name, table, columns, fields, wher...
method SimpleUpdate (line 618) | func (a *MysqlAdapter) SimpleUpdate(up *updatePrebuilder) (string, err...
method SimpleDelete (line 680) | func (a *MysqlAdapter) SimpleDelete(name, table, where string) (string...
method ComplexDelete (line 733) | func (a *MysqlAdapter) ComplexDelete(b *deletePrebuilder) (string, err...
method Purge (line 766) | func (a *MysqlAdapter) Purge(name, table string) (string, error) {
method buildWhere (line 775) | func (a *MysqlAdapter) buildWhere(where string, sb *strings.Builder) e...
method buildFlexiWhere (line 811) | func (a *MysqlAdapter) buildFlexiWhere(where string, dateCutoff *dateC...
method buildFlexiWhereSb (line 872) | func (a *MysqlAdapter) buildFlexiWhereSb(sb *strings.Builder, where st...
method buildOrderby (line 932) | func (a *MysqlAdapter) buildOrderby(orderby string) (q string) {
method buildOrderbySb (line 954) | func (a *MysqlAdapter) buildOrderbySb(sb *strings.Builder, orderby str...
method SimpleSelect (line 973) | func (a *MysqlAdapter) SimpleSelect(name, table, cols, where, orderby,...
method ComplexSelect (line 1016) | func (a *MysqlAdapter) ComplexSelect(preBuilder *selectPrebuilder) (ou...
method complexSelect (line 1035) | func (a *MysqlAdapter) complexSelect(preBuilder *selectPrebuilder, sb ...
method SimpleLeftJoin (line 1074) | func (a *MysqlAdapter) SimpleLeftJoin(name, table1, table2, columns, j...
method SimpleInnerJoin (line 1111) | func (a *MysqlAdapter) SimpleInnerJoin(name, table1, table2, columns, ...
method SimpleUpdateSelect (line 1148) | func (a *MysqlAdapter) SimpleUpdateSelect(up *updatePrebuilder) (strin...
method SimpleInsertSelect (line 1179) | func (a *MysqlAdapter) SimpleInsertSelect(name string, ins DBInsert, s...
method SimpleInsertLeftJoin (line 1192) | func (a *MysqlAdapter) SimpleInsertLeftJoin(name string, ins DBInsert,...
method buildJoiners (line 1205) | func (a *MysqlAdapter) buildJoiners(joiners string) (q string) {
method buildJoinWhere (line 1229) | func (a *MysqlAdapter) buildJoinWhere(where string) (q string, e error) {
method buildLimit (line 1269) | func (a *MysqlAdapter) buildLimit(limit string) (q string) {
method buildLimitSb (line 1276) | func (a *MysqlAdapter) buildLimitSb(sb *strings.Builder, limit string) {
method buildJoinColumns (line 1283) | func (a *MysqlAdapter) buildJoinColumns(cols string) (q string) {
method SimpleInsertInnerJoin (line 1314) | func (a *MysqlAdapter) SimpleInsertInnerJoin(name string, ins DBInsert...
method SimpleCount (line 1328) | func (a *MysqlAdapter) SimpleCount(name, table, where, limit string) (...
method Builder (line 1355) | func (a *MysqlAdapter) Builder() *prebuilder {
method Write (line 1359) | func (a *MysqlAdapter) Write() error {
method pushStatement (line 1428) | func (a *MysqlAdapter) pushStatement(name, stype, q string) {
method stringyType (line 1436) | func (a *MysqlAdapter) stringyType(ct string) bool {
constant silen1 (line 392) | silen1 = len("INSERT INTO``()VALUES() ")
constant sulen1 (line 616) | sulen1 = len("UPDATE `` SET ")
constant sdlen1 (line 678) | sdlen1 = len("DELETE FROM `` WHERE")
constant cdlen1 (line 731) | cdlen1 = len("DELETE FROM ``")
constant FlexiHint1 (line 809) | FlexiHint1 = len(` ;rel=preload;as=script,") + 6
constant slen2 (line 28) | slen2 = len(";rel=preload;as=style,") + 7
function doPush (line 32) | func doPush(w http.ResponseWriter, h *c.Header) {
function renderTemplate (line 124) | func renderTemplate(tmplName string, w http.ResponseWriter, r *http.Requ...
function renderTemplate2 (line 128) | func renderTemplate2(tmplName, hookName string, w http.ResponseWriter, r...
function FootHeaders (line 136) | func FootHeaders(w http.ResponseWriter, h *c.Header) {
function renderTemplate3 (line 163) | func renderTemplate3(tmplName, hookName string, w http.ResponseWriter, r...
function actionSuccess (line 219) | func actionSuccess(w http.ResponseWriter, r *http.Request, dest string, ...
FILE: routes/convos.go
function convoNotice (line 18) | func convoNotice(h *c.Header) {
function Convos (line 24) | func Convos(w http.ResponseWriter, r *http.Request, user *c.User, h *c.H...
function Convo (line 61) | func Convo(w http.ResponseWriter, r *http.Request, user *c.User, h *c.He...
function ConvosCreate (line 136) | func ConvosCreate(w http.ResponseWriter, r *http.Request, user *c.User, ...
function ConvosCreateSubmit (line 155) | func ConvosCreateSubmit(w http.ResponseWriter, r *http.Request, user *c....
function ConvosCreateReplySubmit (line 259) | func ConvosCreateReplySubmit(w http.ResponseWriter, r *http.Request, use...
function ConvosDeleteReplySubmit (line 311) | func ConvosDeleteReplySubmit(w http.ResponseWriter, r *http.Request, u *...
function ConvosEditReplySubmit (line 364) | func ConvosEditReplySubmit(w http.ResponseWriter, r *http.Request, user ...
function RelationsBlockCreate (line 411) | func RelationsBlockCreate(w http.ResponseWriter, r *http.Request, u *c.U...
function RelationsBlockCreateSubmit (line 428) | func RelationsBlockCreateSubmit(w http.ResponseWriter, r *http.Request, ...
function RelationsBlockRemove (line 452) | func RelationsBlockRemove(w http.ResponseWriter, r *http.Request, u *c.U...
function RelationsBlockRemoveSubmit (line 469) | func RelationsBlockRemoveSubmit(w http.ResponseWriter, r *http.Request, ...
FILE: routes/forum.go
function ViewForum (line 14) | func ViewForum(w http.ResponseWriter, r *http.Request, u *c.User, h *c.H...
FILE: routes/forum_list.go
function ForumList (line 11) | func ForumList(w http.ResponseWriter, r *http.Request, u *c.User, h *c.H...
FILE: routes/misc.go
function StaticFile (line 22) | func StaticFile(w http.ResponseWriter, r *http.Request) {
function Overview (line 91) | func Overview(w http.ResponseWriter, r *http.Request, u *c.User, h *c.He...
function CustomPage (line 97) | func CustomPage(w http.ResponseWriter, r *http.Request, u *c.User, h *c....
function ChangeTheme (line 120) | func ChangeTheme(w http.ResponseWriter, r *http.Request, u *c.User) c.Ro...
FILE: routes/moderate.go
function IPSearch (line 10) | func IPSearch(w http.ResponseWriter, r *http.Request, u *c.User, h *c.He...
FILE: routes/panel/analytics.go
function analyticsTimeRange (line 17) | func analyticsTimeRange(rawTimeRange string) (*c.AnalyticsTimeRange, err...
type pAvg (line 70) | type pAvg struct
function analyticsRowsToAverageMap (line 75) | func analyticsRowsToAverageMap(rows *sql.Rows, labelList []int64, avgMap...
function analyticsRowsToAverageMap2 (line 107) | func analyticsRowsToAverageMap2(rows *sql.Rows, labelList []int64, avgMa...
function analyticsRowsToAverageMap3 (line 145) | func analyticsRowsToAverageMap3(rows *sql.Rows, labelList []int64, avgMa...
function PreAnalyticsDetail (line 188) | func PreAnalyticsDetail(w http.ResponseWriter, r *http.Request, u *c.Use...
function createTimeGraph (line 200) | func createTimeGraph(series [][]int64, labelList []int64, legends ...[]s...
function CreateViewListItems (line 210) | func CreateViewListItems(revLabelList []int64, viewMap map[int64]int64) ...
function AnalyticsViews (line 220) | func AnalyticsViews(w http.ResponseWriter, r *http.Request, u *c.User) c...
function AnalyticsRouteViews (line 249) | func AnalyticsRouteViews(w http.ResponseWriter, r *http.Request, u *c.Us...
function AnalyticsAgentViews (line 273) | func AnalyticsAgentViews(w http.ResponseWriter, r *http.Request, u *c.Us...
function AnalyticsForumViews (line 304) | func AnalyticsForumViews(w http.ResponseWriter, r *http.Request, u *c.Us...
function AnalyticsSystemViews (line 338) | func AnalyticsSystemViews(w http.ResponseWriter, r *http.Request, u *c.U...
function CreateViewList (line 368) | func CreateViewList(revLabelList []int64, viewMap map[int64]int64) []int...
function AnalyticsLanguageViews (line 376) | func AnalyticsLanguageViews(w http.ResponseWriter, r *http.Request, u *c...
function AnalyticsReferrerViews (line 406) | func AnalyticsReferrerViews(w http.ResponseWriter, r *http.Request, u *c...
function AnalyticsTopics (line 430) | func AnalyticsTopics(w http.ResponseWriter, r *http.Request, u *c.User) ...
function AnalyticsPosts (line 453) | func AnalyticsPosts(w http.ResponseWriter, r *http.Request, u *c.User) c...
function AnalyticsMemory (line 476) | func AnalyticsMemory(w http.ResponseWriter, r *http.Request, u *c.User) ...
function AnalyticsActiveMemory (line 512) | func AnalyticsActiveMemory(w http.ResponseWriter, r *http.Request, u *c....
function AnalyticsPerf (line 557) | func AnalyticsPerf(w http.ResponseWriter, r *http.Request, u *c.User) c....
function analyticsRowsToAvgDuoMap (line 602) | func analyticsRowsToAvgDuoMap(rows *sql.Rows, labelList []int64, avgMap ...
function sortOVList (line 642) | func sortOVList(ovList []OVItem) []OVItem {
function analyticsAMapToOVList (line 663) | func analyticsAMapToOVList(aMap map[string]map[int64]int64) []OVItem {
function AnalyticsRoutesPerf (line 677) | func AnalyticsRoutesPerf(w http.ResponseWriter, r *http.Request, u *c.Us...
function analyticsRowsToRefMap (line 757) | func analyticsRowsToRefMap(rows *sql.Rows) (map[string]int, error) {
function analyticsRowsToDuoMap (line 777) | func analyticsRowsToDuoMap(rows *sql.Rows, labelList []int64, viewMap ma...
type OVItem (line 817) | type OVItem struct
function analyticsVMapToOVList (line 823) | func analyticsVMapToOVList(vMap map[string]map[int64]int64) (ovList []OV...
function AnalyticsForums (line 837) | func AnalyticsForums(w http.ResponseWriter, r *http.Request, u *c.User) ...
function AnalyticsRoutes (line 920) | func AnalyticsRoutes(w http.ResponseWriter, r *http.Request, u *c.User) ...
function AnalyticsAgents (line 995) | func AnalyticsAgents(w http.ResponseWriter, r *http.Request, u *c.User) ...
function AnalyticsSystems (line 1080) | func AnalyticsSystems(w http.ResponseWriter, r *http.Request, u *c.User)...
function AnalyticsLanguages (line 1144) | func AnalyticsLanguages(w http.ResponseWriter, r *http.Request, u *c.Use...
function AnalyticsReferrers (line 1231) | func AnalyticsReferrers(w http.ResponseWriter, r *http.Request, u *c.Use...
FILE: routes/panel/backups.go
function Backups (line 13) | func Backups(w http.ResponseWriter, r *http.Request, u *c.User, backupUR...
FILE: routes/panel/common.go
function successRedirect (line 15) | func successRedirect(dest string, w http.ResponseWriter, r *http.Request...
function renderTemplate (line 25) | func renderTemplate(tmplName string, w http.ResponseWriter, r *http.Requ...
function buildBasePage (line 46) | func buildBasePage(w http.ResponseWriter, r *http.Request, u *c.User, ti...
FILE: routes/panel/dashboard.go
type dashStmts (line 21) | type dashStmts struct
function dashMySQLStmts (line 30) | func dashMySQLStmts() (stmts dashStmts, err error) {
function dashMSSQLStmts (line 51) | func dashMSSQLStmts() (stmts dashStmts, err error) {
function Dashboard (line 73) | func Dashboard(w http.ResponseWriter, r *http.Request, user *c.User) c.R...
type dirSize (line 244) | type dirSize struct
function init (line 249) | func init() {
function startDirSizeTask (line 257) | func startDirSizeTask() {
function getDirSize (line 277) | func getDirSize() dirSize {
type StatsDiskJson (line 281) | type StatsDiskJson struct
function StatsDisk (line 285) | func StatsDisk(w http.ResponseWriter, r *http.Request, user *c.User) c.R...
FILE: routes/panel/debug.go
function Debug (line 13) | func Debug(w http.ResponseWriter, r *http.Request, u *c.User) c.RouteErr...
function DebugTasks (line 140) | func DebugTasks(w http.ResponseWriter, r *http.Request, u *c.User) c.Rou...
FILE: routes/panel/forums.go
function Forums (line 14) | func Forums(w http.ResponseWriter, r *http.Request, u *c.User) c.RouteEr...
function ForumsCreateSubmit (line 55) | func ForumsCreateSubmit(w http.ResponseWriter, r *http.Request, u *c.Use...
function ForumsDelete (line 84) | func ForumsDelete(w http.ResponseWriter, r *http.Request, u *c.User, sfi...
function ForumsDeleteSubmit (line 114) | func ForumsDeleteSubmit(w http.ResponseWriter, r *http.Request, u *c.Use...
function ForumsOrderSubmit (line 142) | func ForumsOrderSubmit(w http.ResponseWriter, r *http.Request, u *c.User...
function ForumsEdit (line 176) | func ForumsEdit(w http.ResponseWriter, r *http.Request, u *c.User, sfid ...
function ForumsEditSubmit (line 238) | func ForumsEditSubmit(w http.ResponseWriter, r *http.Request, u *c.User,...
function ForumsEditPermsSubmit (line 284) | func ForumsEditPermsSubmit(w http.ResponseWriter, r *http.Request, u *c....
function forumPermsExtractDash (line 324) | func forumPermsExtractDash(paramList string) (fid, gid int, e error) {
function ForumsEditPermsAdvance (line 340) | func ForumsEditPermsAdvance(w http.ResponseWriter, r *http.Request, u *c...
function ForumsEditPermsAdvanceSubmit (line 398) | func ForumsEditPermsAdvanceSubmit(w http.ResponseWriter, r *http.Request...
function ForumsEditActionDeleteSubmit (line 456) | func ForumsEditActionDeleteSubmit(w http.ResponseWriter, r *http.Request...
function ForumsEditActionCreateSubmit (line 487) | func ForumsEditActionCreateSubmit(w http.ResponseWriter, r *http.Request...
FILE: routes/panel/groups.go
function Groups (line 13) | func Groups(w http.ResponseWriter, r *http.Request, u *c.User) c.RouteEr...
function GroupsEdit (line 64) | func GroupsEdit(w http.ResponseWriter, r *http.Request, user *c.User, sg...
function GroupsEditPromotions (line 106) | func GroupsEditPromotions(w http.ResponseWriter, r *http.Request, user *...
function groupCheck (line 171) | func groupCheck(w http.ResponseWriter, r *http.Request, u *c.User, g *c....
function GroupsPromotionsCreateSubmit (line 186) | func GroupsPromotionsCreateSubmit(w http.ResponseWriter, r *http.Request...
function GroupsPromotionsDeleteSubmit (line 254) | func GroupsPromotionsDeleteSubmit(w http.ResponseWriter, r *http.Request...
function GroupsEditPerms (line 301) | func GroupsEditPerms(w http.ResponseWriter, r *http.Request, u *c.User, ...
function GroupsEditSubmit (line 389) | func GroupsEditSubmit(w http.ResponseWriter, r *http.Request, user *c.Us...
function GroupsEditPermsSubmit (line 475) | func GroupsEditPermsSubmit(w http.ResponseWriter, r *http.Request, user ...
function GroupsCreateSubmit (line 524) | func GroupsCreateSubmit(w http.ResponseWriter, r *http.Request, user *c....
FILE: routes/panel/logs.go
function LogsRegs (line 15) | func LogsRegs(w http.ResponseWriter, r *http.Request, u *c.User) c.Route...
function handleUnknownUser (line 41) | func handleUnknownUser(u *c.User, e error) *c.User {
function handleUnknownTopic (line 47) | func handleUnknownTopic(t *c.Topic, e error) *c.Topic {
function topicElementTypeAction (line 55) | func topicElementTypeAction(action, elementType string, elementID int, a...
function modlogsElementType (line 82) | func modlogsElementType(action, elementType string, elementID int, actor...
function adminlogsElementType (line 114) | func adminlogsElementType(action, elementType string, elementID int, act...
function LogsMod (line 171) | func LogsMod(w http.ResponseWriter, r *http.Request, u *c.User) c.RouteE...
function LogsAdmin (line 196) | func LogsAdmin(w http.ResponseWriter, r *http.Request, u *c.User) c.Rout...
FILE: routes/panel/pages.go
function Pages (line 11) | func Pages(w http.ResponseWriter, r *http.Request, u *c.User) c.RouteErr...
function PagesCreateSubmit (line 38) | func PagesCreateSubmit(w http.ResponseWriter, r *http.Request, u *c.User...
function PagesEdit (line 74) | func PagesEdit(w http.ResponseWriter, r *http.Request, u *c.User, spid s...
function PagesEditSubmit (line 98) | func PagesEditSubmit(w http.ResponseWriter, r *http.Request, u *c.User, ...
function PagesDeleteSubmit (line 141) | func PagesDeleteSubmit(w http.ResponseWriter, r *http.Request, u *c.User...
FILE: routes/panel/plugins.go
function Plugins (line 11) | func Plugins(w http.ResponseWriter, r *http.Request, u *c.User) c.RouteE...
function PluginsActivate (line 30) | func PluginsActivate(w http.ResponseWriter, r *http.Request, u *c.User, ...
function PluginsDeactivate (line 86) | func PluginsDeactivate(w http.ResponseWriter, r *http.Request, u *c.User...
function PluginsInstall (line 124) | func PluginsInstall(w http.ResponseWriter, r *http.Request, u *c.User, u...
FILE: routes/panel/settings.go
function Settings (line 13) | func Settings(w http.ResponseWriter, r *http.Request, u *c.User) c.Route...
function SettingEdit (line 60) | func SettingEdit(w http.ResponseWriter, r *http.Request, u *c.User, snam...
function SettingEditSubmit (line 99) | func SettingEditSubmit(w http.ResponseWriter, r *http.Request, u *c.User...
FILE: routes/panel/themes.go
function Themes (line 15) | func Themes(w http.ResponseWriter, r *http.Request, u *c.User) c.RouteEr...
function ThemesSetDefault (line 40) | func ThemesSetDefault(w http.ResponseWriter, r *http.Request, u *c.User,...
function ThemesMenus (line 70) | func ThemesMenus(w http.ResponseWriter, r *http.Request, u *c.User) c.Ro...
function ThemesMenusEdit (line 95) | func ThemesMenusEdit(w http.ResponseWriter, r *http.Request, u *c.User, ...
function ThemesMenuItemEdit (line 141) | func ThemesMenuItemEdit(w http.ResponseWriter, r *http.Request, u *c.Use...
function themesMenuItemSetters (line 165) | func themesMenuItemSetters(r *http.Request, i c.MenuItem) c.MenuItem {
function ThemesMenuItemEditSubmit (line 208) | func ThemesMenuItemEditSubmit(w http.ResponseWriter, r *http.Request, u ...
function ThemesMenuItemCreateSubmit (line 243) | func ThemesMenuItemCreateSubmit(w http.ResponseWriter, r *http.Request, ...
function ThemesMenuItemDeleteSubmit (line 276) | func ThemesMenuItemDeleteSubmit(w http.ResponseWriter, r *http.Request, ...
function ThemesMenuItemOrderSubmit (line 310) | func ThemesMenuItemOrderSubmit(w http.ResponseWriter, r *http.Request, u...
function ThemesWidgets (line 352) | func ThemesWidgets(w http.ResponseWriter, r *http.Request, u *c.User) c....
function widgetsParseInputs (line 383) | func widgetsParseInputs(r *http.Request, widget *c.Widget) (*c.WidgetEdi...
function ThemesWidgetsEditSubmit (line 417) | func ThemesWidgetsEditSubmit(w http.ResponseWriter, r *http.Request, u *...
function ThemesWidgetsCreateSubmit (line 457) | func ThemesWidgetsCreateSubmit(w http.ResponseWriter, r *http.Request, u...
function ThemesWidgetsDeleteSubmit (line 483) | func ThemesWidgetsDeleteSubmit(w http.ResponseWriter, r *http.Request, u...
FILE: routes/panel/users.go
function Users (line 13) | func Users(w http.ResponseWriter, r *http.Request, u *c.User) c.RouteErr...
function UsersEdit (line 84) | func UsersEdit(w http.ResponseWriter, r *http.Request, u *c.User, suid s...
function UsersEditSubmit (line 133) | func UsersEditSubmit(w http.ResponseWriter, r *http.Request, user *c.Use...
function UsersAvatarSubmit (line 240) | func UsersAvatarSubmit(w http.ResponseWriter, r *http.Request, u *c.User...
function UsersAvatarRemoveSubmit (line 291) | func UsersAvatarRemoveSubmit(w http.ResponseWriter, r *http.Request, u *...
FILE: routes/panel/word_filters.go
function WordFilters (line 13) | func WordFilters(w http.ResponseWriter, r *http.Request, u *c.User) c.Ro...
function WordFiltersCreateSubmit (line 32) | func WordFiltersCreateSubmit(w http.ResponseWriter, r *http.Request, u *...
function WordFiltersEdit (line 64) | func WordFiltersEdit(w http.ResponseWriter, r *http.Request, u *c.User, ...
function WordFiltersEditSubmit (line 78) | func WordFiltersEditSubmit(w http.ResponseWriter, r *http.Request, u *c....
function WordFiltersDeleteSubmit (line 123) | func WordFiltersDeleteSubmit(w http.ResponseWriter, r *http.Request, u *...
FILE: routes/poll.go
function PollVote (line 13) | func PollVote(w http.ResponseWriter, r *http.Request, u *c.User, sPollID...
function PollResults (line 68) | func PollResults(w http.ResponseWriter, r *http.Request, u *c.User, sPol...
FILE: routes/profile.go
type ProfileStmts (line 14) | type ProfileStmts struct
function init (line 21) | func init() {
function ViewProfile (line 31) | func ViewProfile(w http.ResponseWriter, r *http.Request, user *c.User, h...
FILE: routes/profile_reply.go
function ProfileReplyCreateSubmit (line 12) | func ProfileReplyCreateSubmit(w http.ResponseWriter, r *http.Request, u ...
function ProfileReplyEditSubmit (line 58) | func ProfileReplyEditSubmit(w http.ResponseWriter, r *http.Request, u *c...
function ProfileReplyDeleteSubmit (line 105) | func ProfileReplyDeleteSubmit(w http.ResponseWriter, r *http.Request, u ...
FILE: routes/reply.go
type ReplyStmts (line 17) | type ReplyStmts struct
function init (line 24) | func init() {
type JsonReply (line 33) | type JsonReply struct
function CreateReplySubmit (line 37) | func CreateReplySubmit(w http.ResponseWriter, r *http.Request, user *c.U...
function ReplyEditSubmit (line 209) | func ReplyEditSubmit(w http.ResponseWriter, r *http.Request, u *c.User, ...
function ReplyDeleteSubmit (line 252) | func ReplyDeleteSubmit(w http.ResponseWriter, r *http.Request, u *c.User...
function AddAttachToReplySubmit (line 300) | func AddAttachToReplySubmit(w http.ResponseWriter, r *http.Request, u *c...
function RemoveAttachFromReplySubmit (line 340) | func RemoveAttachFromReplySubmit(w http.ResponseWriter, r *http.Request,...
function ReplyActPre (line 377) | func ReplyActPre(w http.ResponseWriter, r *http.Request, u *c.User, srid...
function ReplyLikeSubmit (line 401) | func ReplyLikeSubmit(w http.ResponseWriter, r *http.Request, u *c.User, ...
function ReplyUnlikeSubmit (line 442) | func ReplyUnlikeSubmit(w http.ResponseWriter, r *http.Request, u *c.User...
FILE: routes/reports.go
function ReportSubmit (line 12) | func ReportSubmit(w http.ResponseWriter, r *http.Request, user *c.User, ...
FILE: routes/stubs.go
function DynamicRoute (line 4) | func DynamicRoute() {
function UploadedFile (line 6) | func UploadedFile() {
function BadRoute (line 8) | func BadRoute() {
function Favicon (line 10) | func Favicon() {
function Error (line 14) | func Error() {
function HTTPSRedirect (line 18) | func HTTPSRedirect() {
FILE: routes/topic.go
type TopicStmts (line 30) | type TopicStmts struct
function init (line 37) | func init() {
function ViewTopic (line 46) | func ViewTopic(w http.ResponseWriter, r *http.Request, user *c.User, h *...
function AttachTopicActCommon (line 206) | func AttachTopicActCommon(w http.ResponseWriter, r *http.Request, u *c.U...
function AddAttachToTopicSubmit (line 228) | func AddAttachToTopicSubmit(w http.ResponseWriter, r *http.Request, u *c...
function RemoveAttachFromTopicSubmit (line 259) | func RemoveAttachFromTopicSubmit(w http.ResponseWriter, r *http.Request,...
function CreateTopic (line 290) | func CreateTopic(w http.ResponseWriter, r *http.Request, u *c.User, h *c...
function CreateTopicSubmit (line 361) | func CreateTopicSubmit(w http.ResponseWriter, r *http.Request, u *c.User...
function uploadFilesWithHash (line 471) | func uploadFilesWithHash(w http.ResponseWriter, r *http.Request, u *c.Us...
function EditTopicSubmit (line 565) | func EditTopicSubmit(w http.ResponseWriter, r *http.Request, u *c.User, ...
function DeleteTopicSubmit (line 636) | func DeleteTopicSubmit(w http.ResponseWriter, r *http.Request, user *c.U...
function StickTopicSubmit (line 706) | func StickTopicSubmit(w http.ResponseWriter, r *http.Request, u *c.User,...
function topicActionPre (line 722) | func topicActionPre(stid, action string, w http.ResponseWriter, r *http....
function topicActionPost (line 742) | func topicActionPost(err error, action string, w http.ResponseWriter, r ...
function UnstickTopicSubmit (line 758) | func UnstickTopicSubmit(w http.ResponseWriter, r *http.Request, u *c.Use...
function LockTopicSubmit (line 769) | func LockTopicSubmit(w http.ResponseWriter, r *http.Request, u *c.User) ...
function UnlockTopicSubmit (line 832) | func UnlockTopicSubmit(w http.ResponseWriter, r *http.Request, u *c.User...
function MoveTopicSubmit (line 845) | func MoveTopicSubmit(w http.ResponseWriter, r *http.Request, u *c.User, ...
function addTopicAction (line 910) | func addTopicAction(action string, t *c.Topic, u *c.User) error {
function LikeTopicSubmit (line 919) | func LikeTopicSubmit(w http.ResponseWriter, r *http.Request, u *c.User, ...
function UnlikeTopicSubmit (line 972) | func UnlikeTopicSubmit(w http.ResponseWriter, r *http.Request, u *c.User...
FILE: routes/topic_list.go
function wsTopicList (line 14) | func wsTopicList(topicList []*c.TopicsRow, lastPage int) *c.WsTopicList {
function wsTopicList2 (line 22) | func wsTopicList2(topicList []*c.TopicsRow, u *c.User, fps map[int]c.Qui...
function TopicList (line 37) | func TopicList(w http.ResponseWriter, r *http.Request, u *c.User, h *c.H...
function TopicListMostViewed (line 49) | func TopicListMostViewed(w http.ResponseWriter, r *http.Request, u *c.Us...
function TopicListWeekViews (line 57) | func TopicListWeekViews(w http.ResponseWriter, r *http.Request, u *c.Use...
function TopicListCommon (line 66) | func TopicListCommon(w http.ResponseWriter, r *http.Request, user *c.Use...
FILE: routes/user.go
function BanUserSubmit (line 12) | func BanUserSubmit(w http.ResponseWriter, r *http.Request, u *c.User, su...
function UnbanUser (line 105) | func UnbanUser(w http.ResponseWriter, r *http.Request, u *c.User, suid s...
function ActivateUser (line 149) | func ActivateUser(w http.ResponseWriter, r *http.Request, u *c.User, sui...
function DeletePostsSubmit (line 200) | func DeletePostsSubmit(w http.ResponseWriter, r *http.Request, u *c.User...
FILE: schema/mssql/query_activity_stream.sql
type activity_stream (line 1) | CREATE TABLE [activity_stream] (
FILE: schema/mssql/query_activity_stream_matches.sql
type activity_stream_matches (line 1) | CREATE TABLE [activity_stream_matches] (
FILE: schema/mssql/query_activity_subscriptions.sql
type activity_subscriptions (line 1) | CREATE TABLE [activity_subscriptions] (
FILE: schema/mssql/query_administration_logs.sql
type administration_logs (line 1) | CREATE TABLE [administration_logs] (
FILE: schema/mssql/query_attachments.sql
type attachments (line 1) | CREATE TABLE [attachments] (
FILE: schema/mssql/query_conversations.sql
type conversations (line 1) | CREATE TABLE [conversations] (
FILE: schema/mssql/query_conversations_participants.sql
type conversations_participants (line 1) | CREATE TABLE [conversations_participants] (
FILE: schema/mssql/query_conversations_posts.sql
type conversations_posts (line 1) | CREATE TABLE [conversations_posts] (
FILE: schema/mssql/query_emails.sql
type emails (line 1) | CREATE TABLE [emails] (
FILE: schema/mssql/query_forums.sql
type forums (line 1) | CREATE TABLE [forums] (
FILE: schema/mssql/query_forums_actions.sql
type forums_actions (line 1) | CREATE TABLE [forums_actions] (
FILE: schema/mssql/query_forums_permissions.sql
type forums_permissions (line 1) | CREATE TABLE [forums_permissions] (
FILE: schema/mssql/query_likes.sql
type likes (line 1) | CREATE TABLE [likes] (
FILE: schema/mssql/query_login_logs.sql
type login_logs (line 1) | CREATE TABLE [login_logs] (
FILE: schema/mssql/query_memchunks.sql
type memchunks (line 1) | CREATE TABLE [memchunks] (
FILE: schema/mssql/query_menu_items.sql
type menu_items (line 1) | CREATE TABLE [menu_items] (
FILE: schema/mssql/query_menus.sql
type menus (line 1) | CREATE TABLE [menus] (
FILE: schema/mssql/query_moderation_logs.sql
type moderation_logs (line 1) | CREATE TABLE [moderation_logs] (
FILE: schema/mssql/query_pages.sql
type pages (line 1) | CREATE TABLE [pages] (
FILE: schema/mssql/query_password_resets.sql
type password_resets (line 1) | CREATE TABLE [password_resets] (
FILE: schema/mssql/query_perfchunks.sql
type perfchunks (line 1) | CREATE TABLE [perfchunks] (
FILE: schema/mssql/query_plugins.sql
type plugins (line 1) | CREATE TABLE [plugins] (
FILE: schema/mssql/query_polls.sql
type polls (line 1) | CREATE TABLE [polls] (
FILE: schema/mssql/query_polls_voters.sql
type polls_voters (line 1) | CREATE TABLE [polls_voters] (
FILE: schema/mssql/query_polls_votes.sql
type polls_votes (line 1) | CREATE TABLE [polls_votes] (
FILE: schema/mssql/query_postchunks.sql
type postchunks (line 1) | CREATE TABLE [postchunks] (
FILE: schema/mssql/query_registration_logs.sql
type registration_logs (line 1) | CREATE TABLE [registration_logs] (
FILE: schema/mssql/query_replies.sql
type replies (line 1) | CREATE TABLE [replies] (
FILE: schema/mssql/query_revisions.sql
type revisions (line 1) | CREATE TABLE [revisions] (
FILE: schema/mssql/query_sync.sql
type sync (line 1) | CREATE TABLE [sync] (
FILE: schema/mssql/query_topicchunks.sql
type topicchunks (line 1) | CREATE TABLE [topicchunks] (
FILE: schema/mssql/query_topics.sql
type topics (line 1) | CREATE TABLE [topics] (
FILE: schema/mssql/query_updates.sql
type updates (line 1) | CREATE TABLE [updates] (
FILE: schema/mssql/query_users.sql
type users (line 1) | CREATE TABLE [users] (
FILE: schema/mssql/query_users_2fa_keys.sql
type users_2fa_keys (line 1) | CREATE TABLE [users_2fa_keys] (
FILE: schema/mssql/query_users_avatar_queue.sql
type users_avatar_queue (line 1) | CREATE TABLE [users_avatar_queue] (
FILE: schema/mssql/query_users_blocks.sql
type users_blocks (line 1) | CREATE TABLE [users_blocks] (
FILE: schema/mssql/query_users_groups.sql
type users_groups (line 1) | CREATE TABLE [users_groups] (
FILE: schema/mssql/query_users_groups_promotions.sql
type users_groups_promotions (line 1) | CREATE TABLE [users_groups_promotions] (
FILE: schema/mssql/query_users_groups_scheduler.sql
type users_groups_scheduler (line 1) | CREATE TABLE [users_groups_scheduler] (
FILE: schema/mssql/query_users_replies.sql
type users_replies (line 1) | CREATE TABLE [users_replies] (
FILE: schema/mssql/query_viewchunks.sql
type viewchunks (line 1) | CREATE TABLE [viewchunks] (
FILE: schema/mssql/query_viewchunks_agents.sql
type viewchunks_agents (line 1) | CREATE TABLE [viewchunks_agents] (
FILE: schema/mssql/query_viewchunks_forums.sql
type viewchunks_forums (line 1) | CREATE TABLE [viewchunks_forums] (
FILE: schema/mssql/query_viewchunks_langs.sql
type viewchunks_langs (line 1) | CREATE TABLE [viewchunks_langs] (
FILE: schema/mssql/query_viewchunks_referrers.sql
type viewchunks_referrers (line 1) | CREATE TABLE [viewchunks_referrers] (
FILE: schema/mssql/query_viewchunks_systems.sql
type viewchunks_systems (line 1) | CREATE TABLE [viewchunks_systems] (
FILE: schema/mssql/query_widgets.sql
type widgets (line 1) | CREATE TABLE [widgets] (
FILE: schema/mssql/query_word_filters.sql
type word_filters (line 1) | CREATE TABLE [word_filters] (
FILE: schema/mysql/query_activity_stream.sql
type `activity_stream` (line 1) | CREATE TABLE `activity_stream`(
FILE: schema/mysql/query_activity_stream_matches.sql
type `activity_stream_matches` (line 1) | CREATE TABLE `activity_stream_matches`(
FILE: schema/mysql/query_activity_subscriptions.sql
type `activity_subscriptions` (line 1) | CREATE TABLE `activity_subscriptions`(
FILE: schema/mysql/query_administration_logs.sql
type `administration_logs` (line 1) | CREATE TABLE `administration_logs`(
FILE: schema/mysql/query_attachments.sql
type `attachments` (line 1) | CREATE TABLE `attachments`(
FILE: schema/mysql/query_conversations.sql
type `conversations` (line 1) | CREATE TABLE `conversations`(
FILE: schema/mysql/query_conversations_participants.sql
type `conversations_participants` (line 1) | CREATE TABLE `conversations_participants`(
FILE: schema/mysql/query_conversations_posts.sql
type `conversations_posts` (line 1) | CREATE TABLE `conversations_posts`(
FILE: schema/mysql/query_emails.sql
type `emails` (line 1) | CREATE TABLE `emails`(
FILE: schema/mysql/query_forums.sql
type `forums` (line 1) | CREATE TABLE `forums`(
FILE: schema/mysql/query_forums_actions.sql
type `forums_actions` (line 1) | CREATE TABLE `forums_actions`(
FILE: schema/mysql/query_forums_permissions.sql
type `forums_permissions` (line 1) | CREATE TABLE `forums_permissions`(
FILE: schema/mysql/query_likes.sql
type `likes` (line 1) | CREATE TABLE `likes`(
FILE: schema/mysql/query_login_logs.sql
type `login_logs` (line 1) | CREATE TABLE `login_logs`(
FILE: schema/mysql/query_memchunks.sql
type `memchunks` (line 1) | CREATE TABLE `memchunks`(
FILE: schema/mysql/query_menu_items.sql
type `menu_items` (line 1) | CREATE TABLE `menu_items`(
FILE: schema/mysql/query_menus.sql
type `menus` (line 1) | CREATE TABLE `menus`(
FILE: schema/mysql/query_meta.sql
type `meta` (line 1) | CREATE TABLE `meta`(
FILE: schema/mysql/query_moderation_logs.sql
type `moderation_logs` (line 1) | CREATE TABLE `moderation_logs`(
FILE: schema/mysql/query_pages.sql
type `pages` (line 1) | CREATE TABLE `pages`(
FILE: schema/mysql/query_password_resets.sql
type `password_resets` (line 1) | CREATE TABLE `password_resets`(
FILE: schema/mysql/query_perfchunks.sql
type `perfchunks` (line 1) | CREATE TABLE `perfchunks`(
FILE: schema/mysql/query_plugins.sql
type `plugins` (line 1) | CREATE TABLE `plugins`(
FILE: schema/mysql/query_polls.sql
type `polls` (line 1) | CREATE TABLE `polls`(
FILE: schema/mysql/query_polls_options.sql
type `polls_options` (line 1) | CREATE TABLE `polls_options`(
FILE: schema/mysql/query_polls_voters.sql
type `polls_voters` (line 1) | CREATE TABLE `polls_voters` (
FILE: schema/mysql/query_polls_votes.sql
type `polls_votes` (line 1) | CREATE TABLE `polls_votes`(
FILE: schema/mysql/query_postchunks.sql
type `postchunks` (line 1) | CREATE TABLE `postchunks`(
FILE: schema/mysql/query_registration_logs.sql
type `registration_logs` (line 1) | CREATE TABLE `registration_logs`(
FILE: schema/mysql/query_replies.sql
type `replies` (line 1) | CREATE TABLE `replies`(
FILE: schema/mysql/query_revisions.sql
type `revisions` (line 1) | CREATE TABLE `revisions`(
FILE: schema/mysql/query_settings.sql
type `settings` (line 1) | CREATE TABLE `settings`(
FILE: schema/mysql/query_sync.sql
type `sync` (line 1) | CREATE TABLE `sync`(
FILE: schema/mysql/query_themes.sql
type `themes` (line 1) | CREATE TABLE `themes`(
FILE: schema/mysql/query_topicchunks.sql
type `topicchunks` (line 1) | CREATE TABLE `topicchunks`(
FILE: schema/mysql/query_topics.sql
type `topics` (line 1) | CREATE TABLE `topics`(
FILE: schema/mysql/query_updates.sql
type `updates` (line 1) | CREATE TABLE `updates`(
FILE: schema/mysql/query_users.sql
type `users` (line 1) | CREATE TABLE `users`(
FILE: schema/mysql/query_users_2fa_keys.sql
type `users_2fa_keys` (line 1) | CREATE TABLE `users_2fa_keys`(
FILE: schema/mysql/query_users_avatar_queue.sql
type `users_avatar_queue` (line 1) | CREATE TABLE `users_avatar_queue`(
FILE: schema/mysql/query_users_blocks.sql
type `users_blocks` (line 1) | CREATE TABLE `users_blocks`(
FILE: schema/mysql/query_users_groups.sql
type `users_groups` (line 1) | CREATE TABLE `users_groups`(
FILE: schema/mysql/query_users_groups_promotions.sql
type `users_groups_promotions` (line 1) | CREATE TABLE `users_groups_promotions`(
FILE: schema/mysql/query_users_groups_scheduler.sql
type `users_groups_scheduler` (line 1) | CREATE TABLE `users_groups_scheduler`(
FILE: schema/mysql/query_users_replies.sql
type `users_replies` (line 1) | CREATE TABLE `users_replies`(
FILE: schema/mysql/query_viewchunks.sql
type `viewchunks` (line 1) | CREATE TABLE `viewchunks`(
FILE: schema/mysql/query_viewchunks_agents.sql
type `viewchunks_agents` (line 1) | CREATE TABLE `viewchunks_agents`(
FILE: schema/mysql/query_viewchunks_forums.sql
type `viewchunks_forums` (line 1) | CREATE TABLE `viewchunks_forums`(
FILE: schema/mysql/query_viewchunks_langs.sql
type `viewchunks_langs` (line 1) | CREATE TABLE `viewchunks_langs`(
FILE: schema/mysql/query_viewchunks_referrers.sql
type `viewchunks_referrers` (line 1) | CREATE TABLE `viewchunks_referrers`(
FILE: schema/mysql/query_viewchunks_systems.sql
type `viewchunks_systems` (line 1) | CREATE TABLE `viewchunks_systems`(
FILE: schema/mysql/query_widgets.sql
type `widgets` (line 1) | CREATE TABLE `widgets`(
FILE: schema/mysql/query_word_filters.sql
type `word_filters` (line 1) | CREATE TABLE `word_filters`(
FILE: schema/pgsql/query_activity_stream.sql
type "activity_stream" (line 1) | CREATE TABLE "activity_stream" (
FILE: schema/pgsql/query_activity_stream_matches.sql
type "activity_stream_matches" (line 1) | CREATE TABLE "activity_stream_matches" (
FILE: schema/pgsql/query_activity_subscriptions.sql
type "activity_subscriptions" (line 1) | CREATE TABLE "activity_subscriptions" (
FILE: schema/pgsql/query_administration_logs.sql
type "administration_logs" (line 1) | CREATE TABLE "administration_logs" (
FILE: schema/pgsql/query_attachments.sql
type "attachments" (line 1) | CREATE TABLE "attachments" (
FILE: schema/pgsql/query_conversations.sql
type "conversations" (line 1) | CREATE TABLE "conversations" (
FILE: schema/pgsql/query_conversations_participants.sql
type "conversations_participants" (line 1) | CREATE TABLE "conversations_participants" (
FILE: schema/pgsql/query_conversations_posts.sql
type "conversations_posts" (line 1) | CREATE TABLE "conversations_posts" (
FILE: schema/pgsql/query_emails.sql
type "emails" (line 1) | CREATE TABLE "emails" (
FILE: schema/pgsql/query_forums.sql
type "forums" (line 1) | CREATE TABLE "forums" (
FILE: schema/pgsql/query_forums_actions.sql
type "forums_actions" (line 1) | CREATE TABLE "forums_actions" (
FILE: schema/pgsql/query_forums_permissions.sql
type "forums_permissions" (line 1) | CREATE TABLE "forums_permissions" (
FILE: schema/pgsql/query_likes.sql
type "likes" (line 1) | CREATE TABLE "likes" (
FILE: schema/pgsql/query_login_logs.sql
type "login_logs" (line 1) | CREATE TABLE "login_logs" (
FILE: schema/pgsql/query_memchunks.sql
type "memchunks" (line 1) | CREATE TABLE "memchunks" (
FILE: schema/pgsql/query_menu_items.sql
type "menu_items" (line 1) | CREATE TABLE "menu_items" (
FILE: schema/pgsql/query_menus.sql
type "menus" (line 1) | CREATE TABLE "menus" (
FILE: schema/pgsql/query_meta.sql
type "meta" (line 1) | CREATE TABLE "meta" (
FILE: schema/pgsql/query_moderation_logs.sql
type "moderation_logs" (line 1) | CREATE TABLE "moderation_logs" (
FILE: schema/pgsql/query_pages.sql
type "pages" (line 1) | CREATE TABLE "pages" (
FILE: schema/pgsql/query_password_resets.sql
type "password_resets" (line 1) | CREATE TABLE "password_resets" (
FILE: schema/pgsql/query_perfchunks.sql
type "perfchunks" (line 1) | CREATE TABLE "perfchunks" (
FILE: schema/pgsql/query_plugins.sql
type "plugins" (line 1) | CREATE TABLE "plugins" (
FILE: schema/pgsql/query_polls.sql
type "polls" (line 1) | CREATE TABLE "polls" (
FILE: schema/pgsql/query_polls_options.sql
type "polls_options" (line 1) | CREATE TABLE "polls_options" (
FILE: schema/pgsql/query_polls_votes.sql
type "polls_votes" (line 1) | CREATE TABLE "polls_votes" (
FILE: schema/pgsql/query_postchunks.sql
type "postchunks" (line 1) | CREATE TABLE "postchunks" (
FILE: schema/pgsql/query_registration_logs.sql
type "registration_logs" (line 1) | CREATE TABLE "registration_logs" (
FILE: schema/pgsql/query_replies.sql
type "replies" (line 1) | CREATE TABLE "replies" (
FILE: schema/pgsql/query_revisions.sql
type "revisions" (line 1) | CREATE TABLE "revisions" (
FILE: schema/pgsql/query_settings.sql
type "settings" (line 1) | CREATE TABLE "settings" (
FILE: schema/pgsql/query_sync.sql
type "sync" (line 1) | CREATE TABLE "sync" (
FILE: schema/pgsql/query_themes.sql
type "themes" (line 1) | CREATE TABLE "themes" (
FILE: schema/pgsql/query_topicchunks.sql
type "topicchunks" (line 1) | CREATE TABLE "topicchunks" (
FILE: schema/pgsql/query_topics.sql
type "topics" (line 1) | CREATE TABLE "topics" (
FILE: schema/pgsql/query_updates.sql
type "updates" (line 1) | CREATE TABLE "updates" (
FILE: schema/pgsql/query_users.sql
type "users" (line 1) | CREATE TABLE "users" (
FILE: schema/pgsql/query_users_2fa_keys.sql
type "users_2fa_keys" (line 1) | CREATE TABLE "users_2fa_keys" (
FILE: schema/pgsql/query_users_avatar_queue.sql
type "users_avatar_queue" (line 1) | CREATE TABLE "users_avatar_queue" (
FILE: schema/pgsql/query_users_blocks.sql
type "users_blocks" (line 1) | CREATE TABLE "users_blocks" (
FILE: schema/pgsql/query_users_groups.sql
type "users_groups" (line 1) | CREATE TABLE "users_groups" (
FILE: schema/pgsql/query_users_groups_promotions.sql
type "users_groups_promotions" (line 1) | CREATE TABLE "users_groups_promotions" (
FILE: schema/pgsql/query_users_groups_scheduler.sql
type "users_groups_scheduler" (line 1) | CREATE TABLE "users_groups_scheduler" (
FILE: schema/pgsql/query_users_replies.sql
type "users_replies" (line 1) | CREATE TABLE "users_replies" (
FILE: schema/pgsql/query_viewchunks.sql
type "viewchunks" (line 1) | CREATE TABLE "viewchunks" (
FILE: schema/pgsql/query_viewchunks_agents.sql
type "viewchunks_agents" (line 1) | CREATE TABLE "viewchunks_agents" (
FILE: schema/pgsql/query_viewchunks_forums.sql
type "viewchunks_forums" (line 1) | CREATE TABLE "viewchunks_forums" (
FILE: schema/pgsql/query_viewchunks_langs.sql
type "viewchunks_langs" (line 1) | CREATE TABLE "viewchunks_langs" (
FILE: schema/pgsql/query_viewchunks_referrers.sql
type "viewchunks_referrers" (line 1) | CREATE TABLE "viewchunks_referrers" (
FILE: schema/pgsql/query_viewchunks_systems.sql
type "viewchunks_systems" (line 1) | CREATE TABLE "viewchunks_systems" (
FILE: schema/pgsql/query_widgets.sql
type "widgets" (line 1) | CREATE TABLE "widgets" (
FILE: schema/pgsql/query_word_filters.sql
type "word_filters" (line 1) | CREATE TABLE "word_filters" (
FILE: themes/cosora/public/misc.js
function newElement (line 4) | function newElement(etype, eclass) {
function moveAlerts (line 10) | function moveAlerts() {
FILE: themes/nox/public/misc.js
function noxMenuBind (line 3) | function noxMenuBind() {
function moveAlerts (line 37) | function moveAlerts() {
FILE: tickloop.go
function runHook (line 19) | func runHook(name string) error {
function deferredDailies (line 26) | func deferredDailies() error {
function handleLogLongTick (line 42) | func handleLogLongTick(name string, cn int64, secs int) {
function tickLoop (line 52) | func tickLoop(thumbChan chan bool) error {
function sched (line 197) | func sched() error {
function PingLastTopicTick (line 251) | func PingLastTopicTick() error {
FILE: tmpl_client/stub.go
type WriteString (line 14) | type WriteString interface
FILE: tmplstub.go
type WriteString (line 16) | type WriteString interface
FILE: updater/main.go
function main (line 14) | func main() {
function pressAnyKey (line 30) | func pressAnyKey(scanner *bufio.Scanner) {
function logError (line 39) | func logError(err error) bool {
function updater (line 48) | func updater(scanner *bufio.Scanner) bool {
FILE: uutils/utils.go
function StringToBytes (line 11) | func StringToBytes(s string) (bytes []byte) {
function BytesToString (line 21) | func BytesToString(bytes []byte) (s string) {
function nanotime (line 32) | func nanotime() int64
function Nanotime (line 34) | func Nanotime() int64 {