package
0.0.0-20241002170041-88591676c97d
Repository: https://github.com/gptlocal/netools.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
CreateObject creates a new object based on the given Netool instance and config.
Dial provides an easy way for upstream caller to create net.Conn through Netool.
DialUDP provides a way to exchange UDP packets through Netool instance to remote servers.
FromContext returns an Instance from the given context, or nil if the context doesn't contain one.
No description provided by the author
No description provided by the author
MustFromContext returns an Instance from the given context, or panics if not present.
New returns a new Netool instance based on given configuration.
No description provided by the author
RegisterConfigLoader add a new ConfigLoader.
RequireFeatures is a helper function to require features from Instance in context.
ServerType returns the type of the server.
StartInstance starts a new Netool instance with given serialized config.
ToBackgroundDetachedContext create a detached context from another context Internal API */.
Version returns Netool's version as a string, in the form of "x.y.z" where x, y and z are numbers.
VersionStatement returns a list of strings representing the full version info.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Config is the master config of Netool.
ConfigFormat is a configurable format of Netool config file.
InboundHandlerConfig is the configuration for inbound handler.
Instance combines all functionalities in Netool.
OutboundHandlerConfig is the configuration for outbound handler.

# Interfaces

Server is an instance of Netool.

# Type aliases

ConfigBuilder is a builder to build core.Config from filenames and formats.
ConfigLoader is a utility to load Netool config from external source.
NetoolKey is the key type of Instance in Context, exported for test.