control

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 15 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 New

func New(ctx context.Context, r, l, d string, t []string) *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 string) error

func (*Control) DeleteBuffer

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

TODO: Remove from store

func (*Control) Errorwriter

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

func (*Control) FileWriter

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

func (*Control) HasBuffer

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

func (*Control) ImageWriter

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

func (*Control) Input

func (c *Control) Input(handler input.Handler, buffer string, payload []byte) error

func (*Control) Notification

func (c *Control) Notification(buff, from, msg string) error

func (*Control) Remove

func (c *Control) Remove(buffer, filename string) error

func (*Control) SetCommands

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

type WriteCloser

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

func (*WriteCloser) Close

func (w *WriteCloser) Close() error

func (*WriteCloser) Write

func (w *WriteCloser) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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