Documentation
¶
Index ¶
- func Short(sid string) string
- type Control
- type Hub
- func (h *Hub) Drive(ctx context.Context, id string, fn func(*Typist) error) error
- func (h *Hub) Keys(ctx context.Context, id string, keys ...string) error
- func (h *Hub) Run(w http.ResponseWriter, r *http.Request, id string, cmd *exec.Cmd, ...)
- func (h *Hub) Send(ctx context.Context, id, text string) error
- func (h *Hub) Serve(w http.ResponseWriter, r *http.Request, id string)
- func (h *Hub) Viewing(id string) bool
- type Typist
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Control ¶
type Control struct {
Type string `json:"type"`
Cols uint16 `json:"cols,omitempty"`
Rows uint16 `json:"rows,omitempty"`
Owner bool `json:"owner,omitempty"`
Viewers int `json:"viewers,omitempty"`
Holder string `json:"holder,omitempty"`
Viewer int `json:"viewer,omitempty"`
Code int `json:"code,omitempty"`
}
type Hub ¶
type Hub struct {
Bin string
Attach func(id string) *exec.Cmd
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.