Documentation
¶
Index ¶
Constants ¶
View Source
const ( LevelTrace = Level(codersdk.LogLevelTrace) LevelDebug = Level(codersdk.LogLevelDebug) LevelInfo = Level(codersdk.LogLevelInfo) LevelWarn = Level(codersdk.LogLevelWarn) LevelError = Level(codersdk.LogLevelError) )
Below constants are the same as their codersdk equivalents.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Func ¶
func Coder ¶
Coder establishes a connection to the Coder instance located at coderURL and authenticates using token. It then establishes a dRPC connection to the Agent API and begins sending logs. If the version of Coder does not support the Agent API, it will fall back to using the PatchLogs endpoint. The returned function is used to block until all logs are sent.
Click to show internal directories.
Click to hide internal directories.