This moves all of the tcp target functionality into a tcp package. It also establishes a Register function in the target package to allow specific target types to be registered at initilazation time. When registering, a target type needs to provide its Subtype, as well as some RepositoryHooks that are used by the target Repository.
8 lines
156 B
Go
8 lines
156 B
Go
package target
|
|
|
|
// Expose functions for use in tests.
|
|
var (
|
|
AllocTargetView = allocTargetView
|
|
TargetsViewDefaultTable = targetsViewDefaultTable
|
|
)
|