io

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CdCmd

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

func NewCdCmd

func NewCdCmd(dir string) *CdCmd

func (*CdCmd) Get

func (c *CdCmd) Get() string

type Executor

type Executor struct{}

func (*Executor) Execute

func (e *Executor) Execute(name string, args []string) (bytes.Buffer, error)

type File

type File struct{}

func (*File) Read added in v0.2.0

func (f *File) Read(fileName string) ([]byte, error)

func (*File) Remove added in v0.1.2

func (f *File) Remove(fileName string) error

func (*File) Write

func (f *File) Write(fileName, data string) error

type FindTopicsCmd

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

func NewFindTopicsCmd

func NewFindTopicsCmd(lastWritten int64, dataDir string) *FindTopicsCmd

func (*FindTopicsCmd) Get

func (f *FindTopicsCmd) Get() string

type MockExecutor

type MockExecutor struct {
	mock.Mock
}

func (*MockExecutor) Execute

func (m *MockExecutor) Execute(name string, args []string) (bytes.Buffer, error)

type SignalHandler added in v0.1.2

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

func (*SignalHandler) Close added in v0.1.2

func (s *SignalHandler) Close()

Close ensures all the set up listeners have completed execution.

func (*SignalHandler) SetListener added in v0.1.2

func (s *SignalHandler) SetListener(ctx context.Context, cancelFunc context.CancelFunc, syscallSignal syscall.Signal)

SetListener notifies the context about an external signal that has been notified by cancelling the context.

Jump to

Keyboard shortcuts

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