Versions in this module Expand all Collapse all v0 v0.0.0 Jul 26, 2020 Changes in this version + const CONFIG_NAME + const CONFIG_PATH + func GenConfig(path string) error + func LoadPlugins() + type FileTypeHandler interface + DBTableName func() string + FileTypeMagic func() []byte + FileTypeName func() string + ProcessFile func(fileContents []byte, fileID int, ServerContext *ServerContext) error + type ServerConfigFile struct + Database struct{ ... } + DbDriver *sql.DB + FilePath string + Listen struct{ ... } + SSL struct{ ... } + StoredSamplesDepth int + StoredSamplesPath string + func LoadConfig() (ServerConfigFile, error) + func ReadConfig(path string) ServerConfigFile + func (cf *ServerConfigFile) GetDBServerFunctions() ([]string, error) + func (cf *ServerConfigFile) LZJDQueryAvailable() bool + func (cf *ServerConfigFile) ListenString() string + func (cf *ServerConfigFile) NumFiles() int + func (cf *ServerConfigFile) QueryColumns(table string, columns []string) (*sql.Rows, error) + func (cf *ServerConfigFile) SDHashQueryAvailable() bool + func (cf *ServerConfigFile) SSDeepQueryAvailable() bool + func (cf *ServerConfigFile) SetPassword(userid int, password []byte) error + type ServerContext struct + ConfigFile *ServerConfigFile + FileTypePlugins []FileTypeHandler + GlobalWaitGroup *sync.WaitGroup + StartTime time.Time + func GetGlobalContext() *ServerContext + func (cntx *ServerContext) SetConfig(cfg *ServerConfigFile) + func (cntx *ServerContext) TimeRunning() time.Duration