session

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2019 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUp added in v0.0.5

func CleanUp() (err error)

CleanUp delete all session files except the last

Types

type Session

type Session struct {
	FilePath string             `json:"string"`
	Programs []*program.Program `json:"programs"`
}

Session have information about a Sway Session

func LoadNewest

func LoadNewest() (s *Session, err error)

LoadNewest read the newest saved Session data from the disk

func New

func New() (s *Session, err error)

New create a instance of Session

func (*Session) Restore

func (s *Session) Restore() (err error)

Restore execute the commands at Sway to restore its state

func (*Session) Save

func (s *Session) Save() (err error)

Save write to disk the Session data

Jump to

Keyboard shortcuts

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