package
0.0.0-20221111052918-3caaee035fbf
Repository: https://github.com/szhhq/tailscale.git
Documentation: pkg.go.dev
# Functions
ConfigFromBytes parses a Config from its JSON encoding.
ConfigFromFile reads a Config from a JSON file.
LogHost returns the hostname only (without port) of the configured logtail server, or the default.
LogURL is the base URL for the configured logtail server, or the default.
New returns a new log policy (a logger and its instance ID) for a given collection name.
NewConfig creates a Config with collection and a newly generated PrivateID.
NewLogtailTransport returns an HTTP Transport particularly suited to uploading logs to the given host name.
NewWithConfigPath is identical to New, but uses the specified directory and command name.