Documentation ¶
Index ¶
- Constants
- func Version() string
- type RequestCallback
- type SendCallback
- type Worker
- func (w *Worker) Acquire() bool
- func (w *Worker) Dispose()
- func (w *Worker) Execute(scriptName string, code string) error
- func (w *Worker) GetExpireTime() int64
- func (w *Worker) Release()
- func (w *Worker) SafeSend(mtype int, msg string) error
- func (w *Worker) Send(mtype int, msg string) error
- func (w *Worker) SetExpireTime(expireTime int64)
- func (w *Worker) TerminateExecution()
Constants ¶
View Source
const ( V8_LIBPATH_MAC = "/usr/local/Cellar/v8/8.1.307.32/libexec" V8_LIBPATH_LINUX = "/usr/local/lib64/v8" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func New ¶
func New(sendCb SendCallback, requestCb RequestCallback) *Worker
func (*Worker) GetExpireTime ¶
func (*Worker) SetExpireTime ¶
func (*Worker) TerminateExecution ¶
func (w *Worker) TerminateExecution()
Click to show internal directories.
Click to hide internal directories.