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.
7 lines
111 B
Go
7 lines
111 B
Go
package main
|
|
|
|
import (
|
|
// Enable tcp target support.
|
|
_ "github.com/hashicorp/boundary/internal/target/tcp"
|
|
)
|