Documentation ¶
Index ¶
- Variables
- func FindConfig() string
- func FindDataDir() string
- type Client
- func (c *Client) Attach(node tree.Node) error
- func (c *Client) Binds() (binds []api.Binding)
- func (c *Client) Detach(reason string) error
- func (c *Client) Frame() *frames.Framer
- func (c *Client) Get(key string) (value interface{}, ok bool)
- func (c *Client) Margins() *screen.Margins
- func (c *Client) Node() tree.Node
- func (c *Client) OuterLayers() *screen.Layers
- func (c *Client) Params() *params.Parameters
- func (c *Client) Read(p []byte) (n int, err error)
- func (c *Client) Resize(size geom.Vec2) error
- func (c *Client) Write(data []byte) (n int, err error)
- type ClientID
- type ClientOptions
- type Cy
- type CyModule
- func (c *CyModule) Detach(user interface{})
- func (i *CyModule) Documentation() string
- func (c *CyModule) Get(user interface{}, key *janet.Value) (interface{}, error)
- func (c *CyModule) KillServer()
- func (c *CyModule) Log(level *janet.Value, text string) error
- func (c *CyModule) Paste(user interface{})
- func (c *CyModule) ReloadConfig() error
- func (c *CyModule) Replay(user interface{}, named *janet.Named[ReplayParams])
- func (c *CyModule) Set(user interface{}, key *janet.Value, value *janet.Value) error
- func (c *CyModule) Toast(context interface{}, level *janet.Value, message string) error
- type Environment
- type Options
- type ReplayParams
- type ToastLogger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KEYWORD_INFO = janet.Keyword("info") KEYWORD_WARN = janet.Keyword("warn") KEYWORD_ERROR = janet.Keyword("error") )
View Source
var CY_BOOT_FILE []byte
View Source
var DOCS_CY string
Functions ¶
func FindConfig ¶ added in v0.1.13
func FindConfig() string
func FindDataDir ¶ added in v0.1.13
func FindDataDir() string
Types ¶
type Client ¶
func (*Client) OuterLayers ¶ added in v0.1.6
func (*Client) Params ¶ added in v0.1.6
func (c *Client) Params() *params.Parameters
type ClientOptions ¶ added in v0.1.10
type ClientOptions = P.HandshakeMessage
type Cy ¶
type Cy struct { util.Lifetime deadlock.RWMutex *janet.VM // contains filtered or unexported fields }
func (*Cy) ExecuteJanet ¶ added in v0.1.13
type CyModule ¶ added in v0.1.6
type CyModule struct {
// contains filtered or unexported fields
}
func (*CyModule) Documentation ¶ added in v0.1.6
func (*CyModule) KillServer ¶ added in v0.1.6
func (c *CyModule) KillServer()
func (*CyModule) ReloadConfig ¶ added in v0.1.13
func (*CyModule) Replay ¶ added in v0.1.6
func (c *CyModule) Replay( user interface{}, named *janet.Named[ReplayParams], )
type Environment ¶ added in v0.1.6
func (Environment) Default ¶ added in v0.1.6
func (e Environment) Default(key string, defaultValue string) string
func (Environment) IsSet ¶ added in v0.1.6
func (e Environment) IsSet(key string) bool
type ReplayParams ¶ added in v0.1.13
type ToastLogger ¶ added in v0.1.5
type ToastLogger struct {
// contains filtered or unexported fields
}
func NewToastLogger ¶ added in v0.1.5
func NewToastLogger(send func(toasts.Toast)) *ToastLogger
func (*ToastLogger) Error ¶ added in v0.1.5
func (t *ToastLogger) Error(msg string)
func (*ToastLogger) Info ¶ added in v0.1.5
func (t *ToastLogger) Info(msg string)
func (*ToastLogger) Send ¶ added in v0.1.5
func (t *ToastLogger) Send(toast toasts.Toast)
func (*ToastLogger) Warn ¶ added in v0.1.5
func (t *ToastLogger) Warn(msg string)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.