Versions in this module Expand all Collapse all v1 v1.0.1 Jul 5, 2021 v1.0.0 Jul 5, 2021 Changes in this version + var Username = `aoangc` + func GetKey() [16]byte + func Header(tag string) string + func LoadConfig() + func NoMoreContent() dandelion.InlineQueryResultArticle + func Pagination(current, total, count int64) string + func SwitchMode(mode string) string + func UpdateKey() [16]byte + type Configuration struct + DataFolder string + Database string + Domain string + ListenAddr string + LogLevel string + TelegramID int64 + TelegramToken string + TelegramWebhook string + Token struct{ ... } + var Conf Configuration + func (c Configuration) DSN() string + func (c Configuration) IsPostgreSQL() bool + func (c Configuration) IsSQLite() bool + func (c Configuration) IsWebhook() bool + func (c Configuration) LogFolder() string + func (c Configuration) StaticFolder() string + func (c Configuration) TemplatesFolder() string + func (c Configuration) Webhook() string + type Input struct + Content string + CreatedAt time.Time + DeletedAt gorm.DeletedAt + ID uint64 + MessageID int + UpdatedAt time.Time + type Mode string + const ModeInput + const ModeSearch + func (m Mode) String() string + type Note struct + Content string + CreatedAt time.Time + DeletedAt gorm.DeletedAt + ID uint64 + Title string + UpdatedAt time.Time + func NewNote(text string) *Note + func (n *Note) Description() string + func (n *Note) HTML() template.HTML + func (n *Note) InlineQueryResultArticle() dandelion.InlineQueryResultArticle + func (n *Note) List() string + func (n *Note) MarkdownLink() string + func (n *Note) ParticipleContent() string + func (n *Note) ParticipleTitle() string + func (n *Note) PreviewLink() string + func (n *Note) ShareLink() string + func (n *Note) ViewLink() string + type Token struct + NoteID uint64 + Time time.Time + Type Type + func NewToken(t Type, noteID uint64) Token + func ParseToken(s string) *Token + func (t Token) String() string + func (t Token) Valid() bool + type Type uint8 + const None + const Preview + const Share + const View