response

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultResponse

type DefaultResponse struct {
	// Writer is where is written the command stdout
	Writer io.Writer

	// Transformers
	Transformers []transformer.TransformerFunc
}

func NewDefaultResponse added in v0.4.0

func NewDefaultResponse(opts ...ResponseOptions) *DefaultResponse

func (*DefaultResponse) Fwriteln added in v0.4.0

func (r *DefaultResponse) Fwriteln(m interface{})

func (*DefaultResponse) Print added in v0.4.0

func (r *DefaultResponse) Print(reader io.ReadCloser) error

Print

type ResponseOptions added in v0.4.0

type ResponseOptions func(*DefaultResponse)

ExecuteOptions is a function to set executor options

func WithTransformers added in v0.4.0

func WithTransformers(trans ...transformer.TransformerFunc) ResponseOptions

WithTransformers add trasformes

func WithWriter added in v0.4.0

func WithWriter(w io.Writer) ResponseOptions

WithWriter set the writer to be used by DefaultExecutor

Jump to

Keyboard shortcuts

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