auto

package
v0.0.0-...-b6bcde8 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, c *chat.Chat) error

Types

type Command

type Command struct {
	Spec *CommandSpec
	Chat *chat.Chat
	// contains filtered or unexported fields
}

type CommandSpec

type CommandSpec struct {
	Cmd  string
	Args string
	Desc string
	Run  func(*Command) (string, error)
}

func (*CommandSpec) String

func (c *CommandSpec) String() string

type FixableError

type FixableError struct {
	Err  error
	Hint string
}

func (*FixableError) Error

func (e *FixableError) Error() string

type ReplyHandler

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

func (*ReplyHandler) Handle

func (h *ReplyHandler) Handle(r io.Reader) (string, error)

func (*ReplyHandler) Write

func (h *ReplyHandler) Write(p []byte) (n int, err error)

type Result

type Result struct {
	Val string
	Err error
}

Jump to

Keyboard shortcuts

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