Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SessionMarshaller ¶
SessionMarshaller implementation for YamlDB
Types ¶
type Session ¶
type Session struct { Login string `yaml:":login"` Timezone string `yaml:":timezone"` KeepOnline bool `yaml:":keeponline"` RawMessages bool `yaml:":rawmessages"` }
Session is a key-values subtree
func (*Session) TimezoneToLocation ¶
TimezoneToLocation tries to convert config timezone to location
type SessionsMap ¶
SessionsMap is for :sessions: subtree
type SessionsYamlDB ¶
type SessionsYamlDB struct { yamldb.YamlDB Data *SessionsMap }
SessionsYamlDB wraps YamlDB with Session
func LoadSessions ¶
func LoadSessions(path string) (*SessionsYamlDB, error)
LoadSessions restores TDlib sessions from the previous run
Click to show internal directories.
Click to hide internal directories.