Documentation
¶
Index ¶
- Variables
- func RenderStatsSummary() string
- type CSVOutput
- type GroupedByTLDOutput
- type GroupedOutput
- type JSONStreamOutput
- type JsonArrayOutput
- type ResultOutput
- type Stats
- type StyleService
- func (s *StyleService) Available(domain resolver.DomainResult) string
- func (s *StyleService) Errored(domain string, err error) string
- func (s *StyleService) GroupHeader(text string) string
- func (s *StyleService) IsNoColor() bool
- func (s *StyleService) NotAvailable(domain resolver.DomainResult) string
- func (s *StyleService) Styled(text string, color string) string
- type TextOutput
Constants ¶
This section is empty.
Variables ¶
View Source
var Stat = Stats{}
Functions ¶
func RenderStatsSummary ¶
func RenderStatsSummary() string
Types ¶
type CSVOutput ¶
type CSVOutput struct {
// contains filtered or unexported fields
}
func NewCSVOutput ¶
func NewCSVOutput() *CSVOutput
func (*CSVOutput) Write ¶
func (o *CSVOutput) Write(result resolver.DomainResult)
type GroupedByTLDOutput ¶ added in v1.3.1
type GroupedByTLDOutput struct {
// contains filtered or unexported fields
}
func NewGroupedByTLDOutput ¶ added in v1.3.1
func NewGroupedByTLDOutput(app *config.TldxContext) *GroupedByTLDOutput
func (*GroupedByTLDOutput) Flush ¶ added in v1.3.1
func (o *GroupedByTLDOutput) Flush()
func (*GroupedByTLDOutput) Write ¶ added in v1.3.1
func (o *GroupedByTLDOutput) Write(result resolver.DomainResult)
type GroupedOutput ¶ added in v1.3.1
type GroupedOutput struct {
// contains filtered or unexported fields
}
func NewGroupedOutput ¶ added in v1.3.1
func NewGroupedOutput(app *config.TldxContext) *GroupedOutput
func (*GroupedOutput) Flush ¶ added in v1.3.1
func (o *GroupedOutput) Flush()
func (*GroupedOutput) Write ¶ added in v1.3.1
func (o *GroupedOutput) Write(result resolver.DomainResult)
type JSONStreamOutput ¶
type JSONStreamOutput struct{}
func (*JSONStreamOutput) Flush ¶
func (o *JSONStreamOutput) Flush()
func (*JSONStreamOutput) Write ¶
func (o *JSONStreamOutput) Write(result resolver.DomainResult)
type JsonArrayOutput ¶
type JsonArrayOutput struct {
// contains filtered or unexported fields
}
func NewJsonArrayOutput ¶
func NewJsonArrayOutput(w io.Writer, app *config.TldxContext) *JsonArrayOutput
func (*JsonArrayOutput) Flush ¶
func (o *JsonArrayOutput) Flush()
func (*JsonArrayOutput) Write ¶
func (o *JsonArrayOutput) Write(result resolver.DomainResult)
type ResultOutput ¶
type ResultOutput interface {
Write(result resolver.DomainResult)
Flush()
}
func GetOutputWriter ¶
func GetOutputWriter(app *config.TldxContext) ResultOutput
type StyleService ¶
type StyleService struct {
// contains filtered or unexported fields
}
func NewStyleService ¶
func NewStyleService(app *config.TldxContext) *StyleService
func NewStyleServiceDirect ¶ added in v1.5.0
func NewStyleServiceDirect(app *config.TldxContext, noColor bool) *StyleService
NewStyleServiceDirect creates a StyleService with an explicit noColor override. Useful for testing color rendering paths without TTY detection.
func (*StyleService) Available ¶
func (s *StyleService) Available(domain resolver.DomainResult) string
func (*StyleService) GroupHeader ¶ added in v1.3.1
func (s *StyleService) GroupHeader(text string) string
func (*StyleService) IsNoColor ¶
func (s *StyleService) IsNoColor() bool
func (*StyleService) NotAvailable ¶
func (s *StyleService) NotAvailable(domain resolver.DomainResult) string
type TextOutput ¶
type TextOutput struct {
// contains filtered or unexported fields
}
func NewTextOutput ¶
func NewTextOutput(app *config.TldxContext) *TextOutput
func (*TextOutput) Flush ¶
func (o *TextOutput) Flush()
func (*TextOutput) Write ¶
func (o *TextOutput) Write(result resolver.DomainResult)
Click to show internal directories.
Click to hide internal directories.