mock

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

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

func NewControl

func NewControl(ctx context.Context, errs chan error, reqs, cmds chan string, done chan struct{}) *Control

func (*Control) BuildCommand

func (c *Control) BuildCommand(cmd string) (*command.Command, error)

func (*Control) Cleanup

func (c *Control) Cleanup()

func (*Control) CreateBuffer

func (c *Control) CreateBuffer(name, doctype string) error

func (*Control) DeleteBuffer

func (c *Control) DeleteBuffer(name, doctype string) error

func (*Control) Errorwriter

func (c *Control) Errorwriter() (*writer.WriteCloser, error)

func (*Control) Event

func (c *Control) Event(ev string) error

func (*Control) FileWriter

func (c *Control) FileWriter(buffer, doctype string) (*writer.WriteCloser, error)

func (*Control) HasBuffer

func (c *Control) HasBuffer(name, doctype string) bool

func (*Control) ImageWriter

func (c *Control) ImageWriter(buffer, resource string) (*writer.WriteCloser, error)

func (*Control) Input added in v0.1.2

func (c *Control) Input(handler input.Handler, buffer string) error

func (*Control) Listen

func (c *Control) Listen() error

func (*Control) Notification

func (c *Control) Notification(string, string, string) error

func (*Control) Remove

func (c *Control) Remove(name, doctype string) error

func (*Control) SetCommands

func (c *Control) SetCommands(cmd ...*command.Command) error

func (*Control) Start

func (c *Control) Start() (context.Context, error)

Jump to

Keyboard shortcuts

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