prepl

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(opts *Opts) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) CurrentNS

func (c *Client) CurrentNS() string

func (*Client) Eval

func (c *Client) Eval(code string) <-chan client.EvalResult

func (*Client) HandleErr

func (c *Client) HandleErr(err error)

func (*Client) HandleResp

func (c *Client) HandleResp(response client.Response)

func (*Client) Interrupt

func (c *Client) Interrupt()

func (*Client) Load

func (c *Client) Load(filename string, content string) <-chan client.EvalResult

func (*Client) Recv

func (c *Client) Recv() (client.Response, error)

func (*Client) Send

func (c *Client) Send(code client.Request) error

func (*Client) Stdin

func (c *Client) Stdin(input string)

func (*Client) SupportsOp

func (c *Client) SupportsOp(op string) bool

type Exception

type Exception struct {
	Phase edn.Keyword
	Trace [][]interface{} // source, method, file, line
	Via   []ViaEntry
}

type Opts

type Opts struct {
	InitNS        string
	OutputHandler client.OutputHandler
	ErrorHandler  client.ErrorHandler
	ConnBuilder   client.ConnBuilder
	Debug         bool
}

type Response

type Response struct {
	Tag       edn.Keyword
	Val       string
	Ns        string
	Ms        int
	Form      string
	Exception bool
}

func (*Response) String added in v0.4.0

func (resp *Response) String() string

type TriageData

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

type ViaEntry

type ViaEntry struct {
	Type    edn.Symbol
	Message string
	Data    map[edn.Keyword]interface{}
}

Jump to

Keyboard shortcuts

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