Documentation
¶
Index ¶
- Constants
- func Attach(session Session, options AttachOptions) error
- func DialSession(session Session) (net.Conn, error)
- func FormatSessionSummary(session Session) string
- func MarkSessionAlive(session *Session)
- func PingSession(session Session) bool
- func RemoveSession(name string) error
- func SaveSession(session Session) error
- type AttachOptions
- type Daemon
- type Message
- type Session
Constants ¶
View Source
const DefaultSessionName = "default"
Variables ¶
This section is empty.
Functions ¶
func Attach ¶
func Attach(session Session, options AttachOptions) error
func FormatSessionSummary ¶
func MarkSessionAlive ¶
func MarkSessionAlive(session *Session)
func PingSession ¶
func RemoveSession ¶
func SaveSession ¶
Types ¶
type AttachOptions ¶
type Daemon ¶
type Session ¶
type Session struct {
Name string `json:"name"`
PID int `json:"pid"`
Network string `json:"network"`
Address string `json:"address"`
SocketPath string `json:"socket_path,omitempty"`
ConfigPath string `json:"config_path,omitempty"`
CreatedAt time.Time `json:"created_at"`
LastAttached time.Time `json:"last_attached_at"`
Stale bool `json:"-"`
AliveChecked bool `json:"-"`
}
func ListSessions ¶
func LoadSession ¶
func ResolveSession ¶
Click to show internal directories.
Click to hide internal directories.