package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Apr 12, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package client provides management of clients for a server
go get github.com/altid/server/client
type Client struct {
Active bool
UUID uint32
Aux interface{}
}
Client represents a unique client attatched to a server
The Aux can be used to store additional data
Current returns the client's current buffer
History returns a list of all visited buffers
Previous sets the current to the last item in the history
if there are no previous buffers, it is set to "none"
SetBuffer updates the client's current buffer
if set to "none", it marks it as inactive
if buffer was previously inactive, it marks it as active
Manager is used to represent an overview of all currently
connected clients
Client - return for given id or nil
If UUID is 0, a new one will be generated
List returns all currently tracked clients
Remove a named tab from the internal list
Source Files
¶
Click to show internal directories.
Click to hide internal directories.