Documentation ¶
Overview ¶
testhost provides an implementation of a test server for the dynamic RP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestHost ¶
TestHost provides a test host for the dynamic-rp server.
func Start ¶
func Start(t *testing.T, opts ...TestHostOption) (*TestHost, *ucptesthost.TestHost)
func StartWithOptions ¶
StartWithOptions uses the provided options to start the dynamic-rp test host and an instance of UCP configured to route traffic to the dynamic-rp test host.
Manually configuring the server information other than the port is not supported.
type TestHostOption ¶
type TestHostOption interface { // Apply applies the option to the dynamic-rp options. Apply(options *dynamicrp.Options) }
TestHostOptions supports configuring the dynamic-rp test host.
type TestHostOptionFunc ¶
TestHostOptionFunc is a function that implements the TestHostOption interface.
func (TestHostOptionFunc) Apply ¶
func (f TestHostOptionFunc) Apply(options *dynamicrp.Options)
Apply applies the function to the dynamic-rp options.
Click to show internal directories.
Click to hide internal directories.