images

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grapher

type Grapher interface {
	AddNode(node *graph.Node) error
	Exist(node *graph.Node) bool
	AddRelationship(parent, child *graph.Node) error
	DrawGraph(w io.Writer)
}

type TreeOutput

type TreeOutput struct {
	// contains filtered or unexported fields
}

func NewTreeOutput

func NewTreeOutput(options ...TreeOutputOptionsFunc) *TreeOutput

func (*TreeOutput) Options

func (o *TreeOutput) Options(opts ...TreeOutputOptionsFunc)

Options configure the service

func (*TreeOutput) Output

func (o *TreeOutput) Output(list []*image.Image) error

type TreeOutputOptionsFunc

type TreeOutputOptionsFunc func(*TreeOutput)

TreeOutputOptionsFunc is a function used to configure the service

func WithGraph

func WithGraph(g Grapher) TreeOutputOptionsFunc

func WithWriter

func WithWriter(w io.Writer) TreeOutputOptionsFunc

Jump to

Keyboard shortcuts

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