sh

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 26 Imported by: 0

Documentation

Index

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 AttachCmd

func AttachCmd() *cobra.Command

func BareCmd

func BareCmd() *cobra.Command

func FileCmd

func FileCmd() *cobra.Command

func Middleware

func Middleware(h http.Handler, middleware ...func(http.Handler) http.Handler) http.Handler

func ServeCmd

func ServeCmd() *cobra.Command

func ShellCmd

func ShellCmd() *cobra.Command

func ToolCmd added in v0.2.5

func ToolCmd() *cobra.Command

Types

type APIKeyCheck

type APIKeyCheck func(key string) bool

type ParseBufferFn

type ParseBufferFn func(complete bool, fail bool) string

Every time some input has been parsed, call-back if parsing got a complete statement. If so, the full data is returned.

type Server

type Server struct {
	// contains filtered or unexported fields
}

type TimedNetOut

type TimedNetOut struct {
	// contains filtered or unexported fields
}

func (*TimedNetOut) Write

func (t *TimedNetOut) Write(b []byte) (n int, err error)

type TimedWsOut

type TimedWsOut struct {
	// contains filtered or unexported fields
}

func (*TimedWsOut) Write

func (t *TimedWsOut) Write(b []byte) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL