output

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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) Flush

func (o *CSVOutput) Flush()

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 Stats

type Stats struct {
	Total        int
	Available    int
	NotAvailable int
	TimedOut     int
	Errored      int
}

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) Errored

func (s *StyleService) Errored(domain string, err error) 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

func (*StyleService) Styled

func (s *StyleService) Styled(text string, color string) 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL