Documentation ¶
Index ¶
- Constants
- func TagWizardMarkupHelper(tag string) (bool, bool, bool, string)
- type TagWizard
- func (this *TagWizard) ButtonPressed(cmd *string)
- func (this *TagWizard) Buttons() data.TInlineKeyboard
- func (this *TagWizard) ClearTag(tag string)
- func (this *TagWizard) Current() *WizardRule
- func (this *TagWizard) DoOver()
- func (this *TagWizard) Len() int
- func (this *TagWizard) MarshalJSON() ([]byte, error)
- func (this *TagWizard) MergeTags(tags []string)
- func (this *TagWizard) MergeTagsFromString(tagstr string)
- func (this *TagWizard) Next() bool
- func (this TagWizard) Prompt() string
- func (this *TagWizard) Rating() types.PostRating
- func (this *TagWizard) Reset()
- func (this *TagWizard) Rule(id int) *WizardRule
- func (this *TagWizard) SetNewRulesFromString(rulestring string)
- func (this *TagWizard) SetTag(tag string)
- func (this *TagWizard) TagByUID(sid string) string
- func (this *TagWizard) TagUIDs(r *WizardRule)
- func (this *TagWizard) Tags() tags.TagSet
- func (this *TagWizard) ToggleTags(tags []string)
- func (this *TagWizard) ToggleTagsFromString(tagstr string)
- func (this *TagWizard) UID(tag string) string
- func (this *TagWizard) UnmarshalJSON(data []byte) error
- type WizardRule
- func (this *WizardRule) Applicable(tags *tags.TagSet, visitval int) bool
- func (this *WizardRule) Buttons(t *tags.TagSet, w *TagWizard) []data.TInlineKeyboardButton
- func (this *WizardRule) DoImplicit(tags *tags.TagSet)
- func (this *WizardRule) Len() int
- func (this *WizardRule) Less(i, j int) bool
- func (this *WizardRule) ParseFromString(line string) error
- func (this *WizardRule) PrereqsSatisfied(tags *tags.TagSet) bool
- func (this *WizardRule) Prompt() string
- func (this *WizardRule) Swap(i, j int)
- type WizardRuleset
Constants ¶
View Source
const ( CMD_NEXT = "/w-next" CMD_RESTART = "/w-restart" CMD_DONE = "/w-done" CMD_TAGS = "/w-tag" CMD_PREFIX = "/w-" CMD_TAGS_SPACE = CMD_TAGS + " " )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TagWizard ¶
type TagWizard struct {
// contains filtered or unexported fields
}
func (*TagWizard) ButtonPressed ¶
func (*TagWizard) Buttons ¶
func (this *TagWizard) Buttons() data.TInlineKeyboard
func (*TagWizard) Current ¶
func (this *TagWizard) Current() *WizardRule
func (*TagWizard) MarshalJSON ¶
func (*TagWizard) MergeTagsFromString ¶
func (*TagWizard) Rating ¶
func (this *TagWizard) Rating() types.PostRating
func (*TagWizard) Rule ¶
func (this *TagWizard) Rule(id int) *WizardRule
func (*TagWizard) SetNewRulesFromString ¶
func (*TagWizard) TagUIDs ¶
func (this *TagWizard) TagUIDs(r *WizardRule)
func (*TagWizard) ToggleTags ¶
func (*TagWizard) ToggleTagsFromString ¶
func (*TagWizard) UnmarshalJSON ¶
type WizardRule ¶
type WizardRule struct {
// contains filtered or unexported fields
}
func NewWizardRuleFromString ¶
func NewWizardRuleFromString(line string) *WizardRule
func (*WizardRule) Applicable ¶
func (this *WizardRule) Applicable(tags *tags.TagSet, visitval int) bool
func (*WizardRule) Buttons ¶
func (this *WizardRule) Buttons(t *tags.TagSet, w *TagWizard) []data.TInlineKeyboardButton
func (*WizardRule) DoImplicit ¶
func (this *WizardRule) DoImplicit(tags *tags.TagSet)
func (*WizardRule) Len ¶
func (this *WizardRule) Len() int
func (*WizardRule) Less ¶
func (this *WizardRule) Less(i, j int) bool
func (*WizardRule) ParseFromString ¶
func (this *WizardRule) ParseFromString(line string) error
func (*WizardRule) PrereqsSatisfied ¶
func (this *WizardRule) PrereqsSatisfied(tags *tags.TagSet) bool
func (*WizardRule) Prompt ¶
func (this *WizardRule) Prompt() string
func (*WizardRule) Swap ¶
func (this *WizardRule) Swap(i, j int)
type WizardRuleset ¶
type WizardRuleset struct {
// contains filtered or unexported fields
}
func (*WizardRuleset) AddRule ¶
func (this *WizardRuleset) AddRule(r *WizardRule)
func (*WizardRuleset) Clear ¶
func (this *WizardRuleset) Clear()
func (*WizardRuleset) Foreach ¶
func (this *WizardRuleset) Foreach(f func(*WizardRule) bool)
func (*WizardRuleset) Reset ¶
func (this *WizardRuleset) Reset()
func (*WizardRuleset) Rule ¶
func (this *WizardRuleset) Rule(id int) *WizardRule
func (*WizardRuleset) Visit ¶
func (this *WizardRuleset) Visit(id int)
Click to show internal directories.
Click to hide internal directories.