Versions in this module Expand all Collapse all v1 v1.0.0 Feb 3, 2026 Changes in this version + var CacheDurations = map[AnswerType]time.Duration + type ASCIIHandler struct + func NewASCIIHandler() *ASCIIHandler + func (h *ASCIIHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *ASCIIHandler) Type() AnswerType + type ASNHandler struct + func NewASNHandler() *ASNHandler + func (h *ASNHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *ASNHandler) Type() AnswerType + type Answer struct + CacheTTL time.Duration + Content string + Data map[string]interface{} + Description string + Error string + Source string + SourceURL string + Term string + Timestamp time.Time + Title string + Type AnswerType + type AnswerType string + const AnswerTypeASCII + const AnswerTypeASN + const AnswerTypeBeautify + const AnswerTypeCVE + const AnswerTypeCache + const AnswerTypeCase + const AnswerTypeCert + const AnswerTypeCheat + const AnswerTypeChmod + const AnswerTypeCountry + const AnswerTypeCron + const AnswerTypeDNS + const AnswerTypeDict + const AnswerTypeDiff + const AnswerTypeDirectory + const AnswerTypeEmoji + const AnswerTypeEscape + const AnswerTypeExpand + const AnswerTypeFeed + const AnswerTypeHTML + const AnswerTypeHTTP + const AnswerTypeHeaders + const AnswerTypeJSON + const AnswerTypeJWT + const AnswerTypeLicense + const AnswerTypeLorem + const AnswerTypeMIME + const AnswerTypeMan + const AnswerTypePkg + const AnswerTypePort + const AnswerTypeQR + const AnswerTypeRFC + const AnswerTypeRegex + const AnswerTypeResolve + const AnswerTypeRobots + const AnswerTypeRules + const AnswerTypeSafe + const AnswerTypeSitemap + const AnswerTypeSlang + const AnswerTypeSlug + const AnswerTypeSubnet + const AnswerTypeTLDR + const AnswerTypeTech + const AnswerTypeThesaurus + const AnswerTypeTimestamp + const AnswerTypeUnicode + const AnswerTypeUserAgent + const AnswerTypeWhois + const AnswerTypeWiki + const AnswerTypeWord + const AnswerTypeYAML + type BeautifyHandler struct + func NewBeautifyHandler() *BeautifyHandler + func (h *BeautifyHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *BeautifyHandler) Type() AnswerType + type CVEHandler struct + func NewCVEHandler() *CVEHandler + func (h *CVEHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *CVEHandler) Type() AnswerType + type CacheHandler struct + func NewCacheHandler() *CacheHandler + func (h *CacheHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *CacheHandler) Type() AnswerType + type CaseHandler struct + func NewCaseHandler() *CaseHandler + func (h *CaseHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *CaseHandler) Type() AnswerType + type CertHandler struct + func NewCertHandler() *CertHandler + func (h *CertHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *CertHandler) Type() AnswerType + type CheatHandler struct + func NewCheatHandler() *CheatHandler + func (h *CheatHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *CheatHandler) Type() AnswerType + type ChmodHandler struct + func NewChmodHandler() *ChmodHandler + func (h *ChmodHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *ChmodHandler) Type() AnswerType + type CountryHandler struct + func NewCountryHandler() *CountryHandler + func (h *CountryHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *CountryHandler) Type() AnswerType + type CronHandler struct + func NewCronHandler() *CronHandler + func (h *CronHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *CronHandler) Type() AnswerType + type DNSHandler struct + func NewDNSHandler() *DNSHandler + func (h *DNSHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *DNSHandler) Type() AnswerType + type DictHandler struct + func NewDictHandler() *DictHandler + func (h *DictHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *DictHandler) Type() AnswerType + type DiffHandler struct + func NewDiffHandler() *DiffHandler + func (h *DiffHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *DiffHandler) Type() AnswerType + type DirectoryHandler struct + func NewDirectoryHandler() *DirectoryHandler + func (h *DirectoryHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *DirectoryHandler) Type() AnswerType + type EmojiHandler struct + func NewEmojiHandler() *EmojiHandler + func (h *EmojiHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *EmojiHandler) Type() AnswerType + type EscapeHandler struct + func NewEscapeHandler() *EscapeHandler + func (h *EscapeHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *EscapeHandler) Type() AnswerType + type ExpandHandler struct + func NewExpandHandler() *ExpandHandler + func (h *ExpandHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *ExpandHandler) Type() AnswerType + type FeedHandler struct + func NewFeedHandler() *FeedHandler + func (h *FeedHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *FeedHandler) Type() AnswerType + type HTMLHandler struct + func NewHTMLHandler() *HTMLHandler + func (h *HTMLHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *HTMLHandler) Type() AnswerType + type HTTPHandler struct + func NewHTTPHandler() *HTTPHandler + func (h *HTTPHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *HTTPHandler) Type() AnswerType + type Handler interface + Handle func(ctx context.Context, term string) (*Answer, error) + Type func() AnswerType + type HeadersHandler struct + func NewHeadersHandler() *HeadersHandler + func (h *HeadersHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *HeadersHandler) Type() AnswerType + type JSONHandler struct + func NewJSONHandler() *JSONHandler + func (h *JSONHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *JSONHandler) Type() AnswerType + type JWTHandler struct + func NewJWTHandler() *JWTHandler + func (h *JWTHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *JWTHandler) Type() AnswerType + type LicenseHandler struct + func NewLicenseHandler() *LicenseHandler + func (h *LicenseHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *LicenseHandler) Type() AnswerType + type LoremHandler struct + func NewLoremHandler() *LoremHandler + func (h *LoremHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *LoremHandler) Type() AnswerType + type MIMEHandler struct + func NewMIMEHandler() *MIMEHandler + func (h *MIMEHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *MIMEHandler) Type() AnswerType + type ManHandler struct + func NewManHandler() *ManHandler + func (h *ManHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *ManHandler) Type() AnswerType + type Manager struct + func NewManager() *Manager + func (m *Manager) GetHandler(answerType AnswerType) (Handler, bool) + func (m *Manager) GetHandlerTypes() []AnswerType + func (m *Manager) IsDirectAnswer(query string) bool + func (m *Manager) Parse(query string) (AnswerType, string) + func (m *Manager) Process(ctx context.Context, query string) (*Answer, error) + func (m *Manager) ProcessType(ctx context.Context, answerType AnswerType, term string) (*Answer, error) + func (m *Manager) Register(h Handler) + type PkgHandler struct + func NewPkgHandler() *PkgHandler + func (h *PkgHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *PkgHandler) Type() AnswerType + type PortHandler struct + func NewPortHandler() *PortHandler + func (h *PortHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *PortHandler) Type() AnswerType + type QRHandler struct + func NewQRHandler() *QRHandler + func (h *QRHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *QRHandler) Type() AnswerType + type RFCHandler struct + func NewRFCHandler() *RFCHandler + func (h *RFCHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *RFCHandler) Type() AnswerType + type RegexHandler struct + func NewRegexHandler() *RegexHandler + func (h *RegexHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *RegexHandler) Type() AnswerType + type ResolveHandler struct + func NewResolveHandler() *ResolveHandler + func (h *ResolveHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *ResolveHandler) Type() AnswerType + type RobotsHandler struct + func NewRobotsHandler() *RobotsHandler + func (h *RobotsHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *RobotsHandler) Type() AnswerType + type Rule struct + Number int + Text string + type RulesHandler struct + func NewRulesHandler() *RulesHandler + func (h *RulesHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *RulesHandler) Type() AnswerType + type SafeHandler struct + func NewSafeHandler() *SafeHandler + func (h *SafeHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *SafeHandler) Type() AnswerType + type SitemapHandler struct + func NewSitemapHandler() *SitemapHandler + func (h *SitemapHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *SitemapHandler) Type() AnswerType + type SlangHandler struct + func NewSlangHandler() *SlangHandler + func (h *SlangHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *SlangHandler) Type() AnswerType + type SlugHandler struct + func NewSlugHandler() *SlugHandler + func (h *SlugHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *SlugHandler) Type() AnswerType + type SubnetHandler struct + func NewSubnetHandler() *SubnetHandler + func (h *SubnetHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *SubnetHandler) Type() AnswerType + type TLDRHandler struct + func NewTLDRHandler() *TLDRHandler + func (h *TLDRHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *TLDRHandler) Type() AnswerType + type TechHandler struct + func NewTechHandler() *TechHandler + func (h *TechHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *TechHandler) Type() AnswerType + type ThesaurusHandler struct + func NewThesaurusHandler() *ThesaurusHandler + func (h *ThesaurusHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *ThesaurusHandler) Type() AnswerType + type TimestampHandler struct + func NewTimestampHandler() *TimestampHandler + func (h *TimestampHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *TimestampHandler) Type() AnswerType + type UnicodeHandler struct + func NewUnicodeHandler() *UnicodeHandler + func (h *UnicodeHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *UnicodeHandler) Type() AnswerType + type UserAgentHandler struct + func NewUserAgentHandler() *UserAgentHandler + func (h *UserAgentHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *UserAgentHandler) Type() AnswerType + type WhoisHandler struct + func NewWhoisHandler() *WhoisHandler + func (h *WhoisHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *WhoisHandler) Type() AnswerType + type WikiHandler struct + func NewWikiHandler() *WikiHandler + func (h *WikiHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *WikiHandler) Type() AnswerType + type WordHandler struct + func NewWordHandler() *WordHandler + func (h *WordHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *WordHandler) Type() AnswerType + type YAMLHandler struct + func NewYAMLHandler() *YAMLHandler + func (h *YAMLHandler) Handle(ctx context.Context, term string) (*Answer, error) + func (h *YAMLHandler) Type() AnswerType