Documentation ¶
Index ¶
- Constants
- Variables
- func InitLogger()
- type CompositeWriter
- type ConnInfo
- type ConnRepository
- type JsonConnRepository
- func (c *JsonConnRepository) Delete(connInfo *ConnInfo)
- func (c *JsonConnRepository) FindAll() []*ConnInfo
- func (c *JsonConnRepository) FindById(id int64) *ConnInfo
- func (c *JsonConnRepository) FindByName(name string) *ConnInfo
- func (c *JsonConnRepository) SaveAll(connInfos []*ConnInfo)
- func (c *JsonConnRepository) Upsert(connInfo *ConnInfo)
- type LogConfig
- type PlainFormatter
- type Type
- type ZooverseerConfig
Constants ¶
View Source
const ( ConnCacheExpireAfterAccessMinutes = 20 ConnCacheStatsPeriodMinutes = 5 ConnRetryAttempts = 3 ConnRetryDelay = 500 ConnTimeoutSec = 20 )
todo Move constants to config Zk Connection
View Source
const ( ZkCacheExpireAfterAccessMinutes = 10 ZkCacheStatsPeriodMinutes = 5 ZkOpRetryAttempts = 3 ZkOpRetryDelay = 500 )
Zk operations
View Source
const ( NodeColumn = 0 NodeRootName = "/" NodeDummy = "__dummy" // Dummy node to be used as real node children placeholder )
Nodes tree and repository
View Source
const AppAssetsDir = "./assets"
Variables ¶
View Source
var AclWorldAnyone = goZk.WorldACL(goZk.PermAll)
View Source
var Config = ZooverseerConfig{ AppId: "com.github.alivesubstance.zooverseer", AppTitle: "Zooverseer", ShowFolderFirst: true, ConnConfigFilePath: AppAssetsDir + "/connections.json", GladeFilePath: AppAssetsDir + "/main.glade", CssStyleFilePath: AppAssetsDir + "/style.css", LogoFilePath: AppAssetsDir + "/logo.png", ExportDir: "./export", Log: LogConfig{ Dir: "./log", Level: log.TraceLevel, FilesHistorySize: 5, }, }
Functions ¶
func InitLogger ¶
func InitLogger()
Types ¶
type CompositeWriter ¶
type CompositeWriter struct {
// contains filtered or unexported fields
}
type ConnInfo ¶
type ConnRepository ¶
type JsonConnRepository ¶
type JsonConnRepository struct {
ConnRepository
}
func (*JsonConnRepository) Delete ¶
func (c *JsonConnRepository) Delete(connInfo *ConnInfo)
func (*JsonConnRepository) FindAll ¶
func (c *JsonConnRepository) FindAll() []*ConnInfo
func (*JsonConnRepository) FindById ¶
func (c *JsonConnRepository) FindById(id int64) *ConnInfo
func (*JsonConnRepository) FindByName ¶
func (c *JsonConnRepository) FindByName(name string) *ConnInfo
func (*JsonConnRepository) SaveAll ¶
func (c *JsonConnRepository) SaveAll(connInfos []*ConnInfo)
func (*JsonConnRepository) Upsert ¶
func (c *JsonConnRepository) Upsert(connInfo *ConnInfo)
type PlainFormatter ¶
type PlainFormatter struct{}
Click to show internal directories.
Click to hide internal directories.