codersdk/dbenums_gen.go
Rama main · réplica de lectura del repositorio original.
// Code generated by typegen/main.go. DO NOT EDIT.
package codersdk
// ConnectionLogMethod mirrors database.ConnectionLogMethod.
type ConnectionLogMethod string
const (
ConnectionLogMethodSSH ConnectionLogMethod = "ssh"
ConnectionLogMethodReconnectingPTY ConnectionLogMethod = "reconnecting_pty"
ConnectionLogMethodWorkspaceApp ConnectionLogMethod = "workspace_app"
ConnectionLogMethodPortForwarding ConnectionLogMethod = "port_forwarding"
ConnectionLogMethodTunnel ConnectionLogMethod = "tunnel"
)
func (e ConnectionLogMethod) Valid() bool {
switch e {
case ConnectionLogMethodSSH, ConnectionLogMethodReconnectingPTY, ConnectionLogMethodWorkspaceApp, ConnectionLogMethodPortForwarding, ConnectionLogMethodTunnel:
return true
}
return false
}