Simplify naming, don't restate package name
This commit is contained in:
committed by
=Michael Hohn
parent
2d88b351ff
commit
9c0cdb1fe4
@@ -33,7 +33,7 @@ func NewRunnerSingle(numWorkers int, queue queue.Queue) *RunnerSingle {
|
||||
return &r
|
||||
}
|
||||
|
||||
type RunnerVisibles struct {
|
||||
type Visibles struct {
|
||||
Logger logger.Logger
|
||||
Queue queue.Queue
|
||||
// TODO extra package for query pack storage
|
||||
@@ -42,7 +42,7 @@ type RunnerVisibles struct {
|
||||
QLDBStore storage.Storage
|
||||
}
|
||||
|
||||
func (c *RunnerSingle) Setup(st *RunnerVisibles) {
|
||||
func (c *RunnerSingle) Setup(st *Visibles) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package logger
|
||||
|
||||
type LoggerSingle struct {
|
||||
modules *LoggerVisibles
|
||||
modules *Visibles
|
||||
}
|
||||
|
||||
func NewLoggerSingle() *LoggerSingle {
|
||||
@@ -9,8 +9,8 @@ func NewLoggerSingle() *LoggerSingle {
|
||||
return &l
|
||||
}
|
||||
|
||||
type LoggerVisibles struct{}
|
||||
type Visibles struct{}
|
||||
|
||||
func (l *LoggerSingle) Setup(v *LoggerVisibles) {
|
||||
func (l *LoggerSingle) Setup(v *Visibles) {
|
||||
l.modules = v
|
||||
}
|
||||
|
||||
@@ -9,14 +9,14 @@ type QueueSingle struct {
|
||||
NumWorkers int
|
||||
jobs chan common.AnalyzeJob
|
||||
results chan common.AnalyzeResult
|
||||
modules *QueueVisibles
|
||||
modules *Visibles
|
||||
}
|
||||
|
||||
type QueueVisibles struct {
|
||||
type Visibles struct {
|
||||
Logger logger.Logger
|
||||
}
|
||||
|
||||
func (q *QueueSingle) Setup(v *QueueVisibles) {
|
||||
func (q *QueueSingle) Setup(v *Visibles) {
|
||||
q.modules = v
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
func (c *CommanderSingle) Setup(st *CommanderVisibles) {
|
||||
func (c *CommanderSingle) Setup(st *Visibles) {
|
||||
r := mux.NewRouter()
|
||||
c.st = st
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ type SessionInfo struct {
|
||||
}
|
||||
|
||||
type CommanderSingle struct {
|
||||
st *CommanderVisibles
|
||||
st *Visibles
|
||||
}
|
||||
|
||||
func NewCommanderSingle() *CommanderSingle {
|
||||
@@ -42,7 +42,7 @@ func NewCommanderSingle() *CommanderSingle {
|
||||
// Runner agent.Runner
|
||||
// }
|
||||
|
||||
type CommanderVisibles struct {
|
||||
type Visibles struct {
|
||||
Logger logger.Logger
|
||||
Queue queue.Queue
|
||||
ServerStore storage.Storage
|
||||
|
||||
@@ -32,7 +32,7 @@ func (s *StorageContainer) FindAvailableDBs(analysisReposRequested []common.Owne
|
||||
return notFoundRepos, analysisRepos
|
||||
}
|
||||
|
||||
func (s *StorageContainer) Setup(v *ServerStorageVisibles) {
|
||||
func (s *StorageContainer) Setup(v *Visibles) {
|
||||
s.modules = v
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ func NewStorageSingle(startingID int) *StorageSingle {
|
||||
return &s
|
||||
}
|
||||
|
||||
func (s *StorageSingle) Setup(v *ServerStorageVisibles) {
|
||||
func (s *StorageSingle) Setup(v *Visibles) {
|
||||
s.modules = v
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ type DBLocation struct {
|
||||
|
||||
type StorageSingle struct {
|
||||
currentID int
|
||||
modules *ServerStorageVisibles
|
||||
modules *Visibles
|
||||
}
|
||||
|
||||
type DBSpec struct {
|
||||
@@ -60,7 +60,7 @@ type StorageContainer struct {
|
||||
// Database version of StorageSingle
|
||||
RequestID int
|
||||
DB *gorm.DB
|
||||
modules *ServerStorageVisibles
|
||||
modules *Visibles
|
||||
}
|
||||
|
||||
type ServerStorageVisibles struct{}
|
||||
type Visibles struct{}
|
||||
|
||||
Reference in New Issue
Block a user