Documentation ¶
Index ¶
- Constants
- func AttachCmd() *cobra.Command
- func BareCmd() *cobra.Command
- func FileCmd() *cobra.Command
- func Middleware(h http.Handler, middleware ...func(http.Handler) http.Handler) http.Handler
- func ServeCmd() *cobra.Command
- func ShellCmd() *cobra.Command
- func ToolCmd() *cobra.Command
- type APIKeyCheck
- type ParseBufferFn
- type Server
- type TimedNetOut
- type TimedWsOut
Constants ¶
View Source
const UserReadTimeout = time.Hour * 1
Stop listening to users that don't give us commands for an hour
View Source
const UserWriteTimeout = time.Second * 10
Stop writing to users that can't receive a command within 10 seconds.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
Types ¶
type APIKeyCheck ¶
type ParseBufferFn ¶
Every time some input has been parsed, call-back if parsing got a complete statement. If so, the full data is returned.
type TimedNetOut ¶
type TimedNetOut struct {
// contains filtered or unexported fields
}
type TimedWsOut ¶
type TimedWsOut struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.