Versions in this module Expand all Collapse all v0 v0.1.0 Jun 7, 2024 Changes in this version + func Init() + func Set(c *Config) + type Config struct + CurrentServer int + Log *Log + Servers []*Server + Settings Settings + func Get() *Config + func (c *Config) Write() error + type Log struct + Format string + Level string + Output string + Rotation *LogRotation + type LogRotation struct + Compress bool + LocalTime bool + MaxAge int + MaxBackups int + MaxSize int + type Server struct + AutoSave string + Interval time.Duration + Name string + Password string + Readonly bool + Timeout time.Duration + URL string + Username string + func CurrentServer() *Server + func (s *Server) AddEvent(event ServerEvent) + func (s *Server) Events() []ServerEvent + func (s *Server) SetState(state ServerState) + func (s *Server) State() ServerState + type ServerEvent struct + Msg string + Time time.Time + type ServerState string + const ServerError + const ServerReady + type Settings struct + Lang string + Theme string