MCPcopy Create free account

hub / github.com/Code-Hex/golet / functions

Functions65 in github.com/Code-Hex/golet

↓ 7 callersMethodDone
Done is implemented for context.Context
context.go:75
↓ 6 callersMethodAdd
(...Service)
golet.go:80
↓ 6 callersMethodPrintf
Printf formats according to a format specifier and writes to golet writer It returns the number of bytes written and any write error encountered.
context.go:53
↓ 5 callersFunctionNew
New to create struct of golet.
golet.go:116
↓ 5 callersMethodPrintln
Println formats using the default formats for its operands and writes to golet writer. Spaces are always added between operands and a newline is appen
context.go:40
↓ 3 callersMethodPort
Port returns assgined port
context.go:18
↓ 3 callersMethodnotifySignal
()
signalctx.go:18
↓ 3 callersFunctionrun
Execute the command and send its process ID.
golet.go:331
↓ 3 callersFunctionsendSignal2Procs
sendSignal2Procs can send signal and replace os.Process struct of the terminated process with nil
golet.go:318
↓ 2 callersMethodEnv
(map[string]string)
golet.go:79
↓ 2 callersMethodRun
()
golet.go:81
↓ 2 callersMethodSignal
Signal returns os.Signal and error.
context.go:63
↓ 2 callersMethodWrite
Improved io.writer for golet
logger.go:18
↓ 2 callersMethodisCron
()
service.go:52
↓ 2 callersMethodprepare
Create a command
service.go:34
↓ 2 callersMethodwait
Wait services
golet.go:364
↓ 2 callersMethodwaitSignals
Receive process ID to be executed. or It traps the signal relate to parent process. sends a signal to the received process ID.
golet.go:280
↓ 2 callersMethodwrite
(data []byte)
logger.go:33
↓ 1 callersMethodCopy
Copy method is wrapped by io.Copy
context.go:28
↓ 1 callersMethodEnableColor
()
golet.go:74
↓ 1 callersFunctionIsPortAvailable
IsPortAvailable returns a flag is TCP port available.
internal/port/port.go:18
↓ 1 callersMethodRecv
Recv send channel when a process receives a signal.
context.go:58
↓ 1 callersMethodServePort
ServePort returns assigned port which is serve format
context.go:23
↓ 1 callersFunctionServiceGen
()
golet_test.go:131
↓ 1 callersMethodSetCtxCancelSignal
(syscall.Signal)
golet.go:78
↓ 1 callersMethodSetInterval
(time.Duration)
golet.go:73
↓ 1 callersMethodaddCmd
Add a task to execute the command to cron.
golet.go:340
↓ 1 callersMethodaddTask
Add a task to execute the code block to cron.
golet.go:351
↓ 1 callersMethodexecuteCallback
executeCallback run callback as goroutine or cron
golet.go:247
↓ 1 callersMethodexecuteRun
executeRun run command as a process
golet.go:209
↓ 1 callersMethodisCode
()
service.go:48
↓ 1 callersMethodisExecute
()
service.go:44
↓ 1 callersFunctionserveCode
()
eg/main.go:61
MethodAdd
Add can add runnable services
golet.go:147
MethodDeadline
* They are methods for context.Context */ Deadline is implemented for context.Context
signalctx.go:48
MethodDeadline
* They are methods for context.Context */ Deadline is implemented for context.Context
context.go:70
MethodDisableExecNotice
()
golet.go:77
MethodDisableExecNotice
DisableExecNotice is disable execute notifications.
golet.go:109
MethodDisableLogger
()
golet.go:76
MethodDisableLogger
DisableLogger is prevent to output log.
golet.go:106
MethodDone
Done is implemented for context.Context
signalctx.go:53
MethodEnableColor
EnableColor can output colored log.
golet.go:89
MethodEnv
Env can add temporary environment variables.
golet.go:137
MethodErr
Err is implemented for context.Context
signalctx.go:58
MethodErr
Err is implemented for context.Context
context.go:80
FunctionGetPort
GetPort gets a free TCP port between 1024-65535.
internal/port/port.go:31
MethodPrint
Print formats using the default formats for its operands and writes to golet writer. Spaces are added between operands when neither is a string. It re
context.go:47
MethodRecv
Recv send channel when a process receives a signal
signalctx.go:28
MethodRun
Run just like the name.
golet.go:185
MethodSetCtxCancelSignal
SetCtxCancelSignal can specify the signal to send processes when context cancel. If you do not set, golet will not send the signal when context cancel
golet.go:113
MethodSetInterval
for settings SetInterval can specify the interval at which the command is executed.
golet.go:86
MethodSetLogger
(io.Writer)
golet.go:75
MethodSetLogger
SetLogger can specify the io.Writer for example in https://github.com/lestrrat/go-file-rotatelogs * logf, _ := rotatelogs.New( "/path/to/
golet.go:103
MethodSignal
Signal returns os.Signal and error.
signalctx.go:39
FunctionTestAdd
(t *testing.T)
golet_test.go:52
FunctionTestDefault
(t *testing.T)
golet_test.go:21
FunctionTestEnv
(t *testing.T)
golet_test.go:31
FunctionTestWait
(t *testing.T)
golet_test.go:79
MethodValue
Value is implemented for context.Context
signalctx.go:63
MethodValue
Value is implemented for context.Context
context.go:85
MethodWrite
Improved io.writer for golet
context.go:33
MethodcreateContext
(ctx *signalCtx, logger *Logger, port int)
service.go:24
Functioninit
()
golet.go:55
Functionmain
()
_testdata/sleep.go:9
Functionmain
()
eg/main.go:14