Documentation
¶
Index ¶
- Constants
- func Blits(ctx *gogram.MessageCtx)
- func BlitsInternal(tx storage.DBLike, control BlitsControl, progress *ProgMessage) error
- func CalculateAliasedCountsInternal(tx storage.DBLike, progress *ProgMessage) error
- func CatsInternal(tx storage.DBLike, control CatsControl, creds storage.UserCreds, ...) error
- func Concatenations(ctx *gogram.MessageCtx)
- func NewTagsFromOldTags(oldtags []string, deltags, addtags map[string]bool) string
- func Percent(current, max int) string
- func RecountTags(ctx *gogram.MessageCtx, progress *ProgMessage, real_counts, alias_counts bool) error
- func RecountTagsCommand(ctx *gogram.MessageCtx)
- func RecountTagsInternal(tx storage.DBLike, progress *ProgMessage) error
- func RefetchDeletedPosts(ctx *gogram.MessageCtx, progress *ProgMessage) error
- func RefetchDeletedPostsCommand(ctx *gogram.MessageCtx)
- func RefetchDeletedPostsInternal(tx storage.DBLike, user, api_key string, progress *ProgMessage) error
- func ResyncList(ctx *gogram.MessageCtx, progress *ProgMessage) error
- func ResyncListCommand(ctx *gogram.MessageCtx)
- func ResyncListInternal(tx storage.DBLike, user, api_key string, file_data io.Reader, ...) error
- func Serialize(this TagExpression) (string, map[string]string)
- func SyncAliases(ctx *gogram.MessageCtx, progress *ProgMessage) error
- func SyncAliasesCommand(ctx *gogram.MessageCtx)
- func SyncAliasesInternal(tx storage.DBLike, user, api_key string, progress *ProgMessage) error
- func SyncOnlyPostsInternal(tx storage.DBLike, user, api_key string, progress *ProgMessage, ...) error
- func SyncPosts(ctx *gogram.MessageCtx, aliases_too, recount_too bool, progress *ProgMessage) error
- func SyncPostsCommand(ctx *gogram.MessageCtx)
- func SyncPostsInternal(tx storage.DBLike, user, api_key string, aliases_too, recount_too bool, ...) error
- func SyncTags(ctx *gogram.MessageCtx, progress *ProgMessage) error
- func SyncTagsCommand(ctx *gogram.MessageCtx)
- func SyncTagsInternal(tx storage.DBLike, user, api_key string, progress *ProgMessage) error
- func Tokenize(expression string) []string
- func Traverse(words []string, solutions chan []string, so_far []string, combined string)
- func Typos(ctx *gogram.MessageCtx)
- func TyposInternal(tx storage.DBLike, control TyposControl, creds storage.UserCreds, ...) error
- type BlitsControl
- type CatsControl
- type ListSettings
- type Pair
- type ProgMessage
- func (this *ProgMessage) Active() string
- func (this *ProgMessage) AppendNotice(text string) error
- func (this *ProgMessage) Close()
- func (this *ProgMessage) Push(text string) error
- func (this *ProgMessage) ReplaceNotice(text string) error
- func (this *ProgMessage) Respin(previous, notice, status string) string
- func (this *ProgMessage) SetMessage(text string) error
- func (this *ProgMessage) SetStatus(text string) error
- type SearchChanBox
- type TEAnd
- type TENegate
- type TEOr
- type TETag
- type TagEditBox
- type TagExpression
- func Parse(tokens []string) TagExpression
- func ParseExpression(pushdown stack, maxlevel int) (TagExpression, stack)
- func ParseIntersection(first TagExpression, s stack) (TagExpression, stack)
- func ParseLiteral(s stack) (TagExpression, stack)
- func ParseNegation(s stack) (TagExpression, stack)
- func ParseSubExpression(s stack) (TagExpression, stack)
- func ParseUnion(first TagExpression, s stack) (TagExpression, stack)
- type Triplet
- type TyposControl
- type UserError
Constants ¶
View Source
const ( SYNC_BEGIN = 0 SYNC_BEGIN_FULL = iota SYNC_BEGIN_INCREMENTAL = iota SYNC_RESETSTAGING = iota SYNC_TAGCHECKPOINT = iota SYNC_VISIBLE = iota SYNC_DELETED = iota SYNC_GHOSTED = iota SYNC_INCREMENTAL_HISTORY = iota SYNC_TAGS = iota SYNC_TAGNORMALIZE = iota SYNC_STAGEPROMOTE = iota SYNC_DONE = iota SYNC_ERROR = iota SYNC_BREAK = iota )
View Source
const ( STATE_READY = 0 STATE_COUNT = iota )
View Source
const ( MINLENGTH = 4 POPFACTOR = 250 TOLERANCE = 2 )
View Source
const ( MODE_READY = iota MODE_DISTINCT MODE_EXCLUDE MODE_INCLUDE MODE_LIST MODE_FREQ_RATIO MODE_IGNORE MODE_UNIGNORE MODE_FIX MODE_REASON MODE_MARK MODE_DELETE MODE_INSPECT MODE_ENTRY MODE_PROMPT MODE_AUTOFIX MODE_SELECT_1 MODE_SELECT_2 MODE_SELECT_CAT MODE_THRESHOLD MODE_SELECT MODE_SKIP MODE_ALIAS )
Variables ¶
This section is empty.
Functions ¶
func Blits ¶
func Blits(ctx *gogram.MessageCtx)
func BlitsInternal ¶
func BlitsInternal(tx storage.DBLike, control BlitsControl, progress *ProgMessage) error
func CalculateAliasedCountsInternal ¶
func CalculateAliasedCountsInternal(tx storage.DBLike, progress *ProgMessage) error
func CatsInternal ¶
func CatsInternal(tx storage.DBLike, control CatsControl, creds storage.UserCreds, progress *ProgMessage) error
func Concatenations ¶
func Concatenations(ctx *gogram.MessageCtx)
func NewTagsFromOldTags ¶
func RecountTags ¶
func RecountTags(ctx *gogram.MessageCtx, progress *ProgMessage, real_counts, alias_counts bool) error
func RecountTagsCommand ¶
func RecountTagsCommand(ctx *gogram.MessageCtx)
func RecountTagsInternal ¶
func RecountTagsInternal(tx storage.DBLike, progress *ProgMessage) error
func RefetchDeletedPosts ¶
func RefetchDeletedPosts(ctx *gogram.MessageCtx, progress *ProgMessage) error
func RefetchDeletedPostsCommand ¶
func RefetchDeletedPostsCommand(ctx *gogram.MessageCtx)
func RefetchDeletedPostsInternal ¶
func RefetchDeletedPostsInternal(tx storage.DBLike, user, api_key string, progress *ProgMessage) error
func ResyncList ¶
func ResyncList(ctx *gogram.MessageCtx, progress *ProgMessage) error
func ResyncListCommand ¶
func ResyncListCommand(ctx *gogram.MessageCtx)
func ResyncListInternal ¶
func SyncAliases ¶
func SyncAliases(ctx *gogram.MessageCtx, progress *ProgMessage) error
func SyncAliasesCommand ¶
func SyncAliasesCommand(ctx *gogram.MessageCtx)
func SyncAliasesInternal ¶
func SyncAliasesInternal(tx storage.DBLike, user, api_key string, progress *ProgMessage) error
func SyncOnlyPostsInternal ¶
func SyncPosts ¶
func SyncPosts(ctx *gogram.MessageCtx, aliases_too, recount_too bool, progress *ProgMessage) error
func SyncPostsCommand ¶
func SyncPostsCommand(ctx *gogram.MessageCtx)
func SyncPostsInternal ¶
func SyncTags ¶
func SyncTags(ctx *gogram.MessageCtx, progress *ProgMessage) error
func SyncTagsCommand ¶
func SyncTagsCommand(ctx *gogram.MessageCtx)
func SyncTagsInternal ¶
func SyncTagsInternal(tx storage.DBLike, user, api_key string, progress *ProgMessage) error
func Typos ¶
func Typos(ctx *gogram.MessageCtx)
func TyposInternal ¶
func TyposInternal(tx storage.DBLike, control TyposControl, creds storage.UserCreds, progress *ProgMessage) error
Types ¶
type BlitsControl ¶
type BlitsControl struct {
// contains filtered or unexported fields
}
type CatsControl ¶
type CatsControl struct {
// contains filtered or unexported fields
}
type ListSettings ¶
type ListSettings struct {
// contains filtered or unexported fields
}
func (*ListSettings) Apply ¶
func (ls *ListSettings) Apply(other ListSettings)
type ProgMessage ¶
type ProgMessage struct { // public shared fields. These must be initialized before anything calls. UpdateInterval time.Duration InitialMessage data.OMessage Bot *gogram.TelegramBot // public shared fields which are initialized after the first push. Ctx *gogram.MessageCtx // contains filtered or unexported fields }
func ProgressMessage2 ¶
func ProgressMessage2(initial_message data.OMessage, initial_text string, interval time.Duration, bot *gogram.TelegramBot) (*ProgMessage, error)
func (*ProgMessage) Active ¶
func (this *ProgMessage) Active() string
func (*ProgMessage) AppendNotice ¶
func (this *ProgMessage) AppendNotice(text string) error
func (*ProgMessage) Close ¶
func (this *ProgMessage) Close()
func (*ProgMessage) Push ¶
func (this *ProgMessage) Push(text string) error
func (*ProgMessage) ReplaceNotice ¶
func (this *ProgMessage) ReplaceNotice(text string) error
func (*ProgMessage) Respin ¶
func (this *ProgMessage) Respin(previous, notice, status string) string
func (*ProgMessage) SetMessage ¶
func (this *ProgMessage) SetMessage(text string) error
func (*ProgMessage) SetStatus ¶
func (this *ProgMessage) SetStatus(text string) error
type SearchChanBox ¶
func (*SearchChanBox) Close ¶
func (this *SearchChanBox) Close()
type TagEditBox ¶
type TagEditBox struct { EditDistance int Tag types.TTagData Mode storage.CorrectionMode }
type TagExpression ¶
type TagExpression interface {
SerializeReal(buf *bytes.Buffer, index *int, tokens map[string]string)
}
func Parse ¶
func Parse(tokens []string) TagExpression
func ParseExpression ¶
func ParseExpression(pushdown stack, maxlevel int) (TagExpression, stack)
func ParseIntersection ¶
func ParseIntersection(first TagExpression, s stack) (TagExpression, stack)
func ParseLiteral ¶
func ParseLiteral(s stack) (TagExpression, stack)
func ParseNegation ¶
func ParseNegation(s stack) (TagExpression, stack)
func ParseSubExpression ¶
func ParseSubExpression(s stack) (TagExpression, stack)
func ParseUnion ¶
func ParseUnion(first TagExpression, s stack) (TagExpression, stack)
type Triplet ¶
type Triplet struct {
// contains filtered or unexported fields
}
func GetAllWildCats ¶
func GetSpecificWildCats ¶
type TyposControl ¶
type TyposControl struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.