* refactor(worker): Move tcp_proxy into its own package This refactors: - the tcp_proxy.go into worker/proxy/tcp - add a missing unit test for the HandleTcpProxyV1 - refactors session.go into worker/session, needed to avoid import cycle - adds a baseline for a mock controller session client - go lint fixes * Add sleep between spinning listener goroutine and dialing Co-authored-by: Jeff Mitchell <jeffrey.mitchell@gmail.com>
16 lines
376 B
Go
16 lines
376 B
Go
package worker
|
|
|
|
import (
|
|
"github.com/hashicorp/boundary/internal/cmd/base"
|
|
"github.com/hashicorp/boundary/internal/cmd/config"
|
|
)
|
|
|
|
type Config struct {
|
|
// The base Server object, containing things shared between Controllers and
|
|
// Workers
|
|
*base.Server
|
|
// The underlying configuration, passed in here to avoid duplicating values
|
|
// everywhere
|
|
RawConfig *config.Config
|
|
}
|