Documentation ¶
Overview ¶
Package smart provides utilities to dynamically find serverless strategies for circumvention.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StrategyFinder ¶
type StrategyFinder struct { TestTimeout time.Duration LogWriter io.Writer StreamDialer transport.StreamDialer PacketDialer transport.PacketDialer // contains filtered or unexported fields }
func (*StrategyFinder) NewDialer ¶
func (f *StrategyFinder) NewDialer(ctx context.Context, testDomains []string, configBytes []byte) (transport.StreamDialer, error)
NewDialer uses the config in configBytes to search for a strategy that unblocks DNS and TLS for all of the testDomains, returning a dialer with the found strategy. It returns an error if no strategy was found that unblocks the testDomains. The testDomains must be domains with a TLS service running on port 443.
Click to show internal directories.
Click to hide internal directories.