Documentation
¶
Index ¶
- Constants
- func SetLogLevel(lvl log.Level)
- type Spearlet
- func (w *Spearlet) CommunicationManager() *hostcalls.CommunicationManager
- func (w *Spearlet) ExecuteTask(funcId int64, funcName string, funcType task.TaskType, method, data string, ...) (t task.Task, respData string, err error)
- func (w *Spearlet) ExecuteTaskById(taskId int64, funcType task.TaskType, method string, reqData string, ...) (t task.Task, respData string, err error)
- func (w *Spearlet) ExecuteTaskByName(taskName string, funcType task.TaskType, method string, reqData string, ...) (t task.Task, respData string, err error)
- func (w *Spearlet) Initialize()
- func (w *Spearlet) ListTasks() []string
- func (w *Spearlet) LookupTaskId(name string) (int64, error)
- func (w *Spearlet) RunTask(funcId int64, funcName string, funcType task.TaskType, method string, ...) (respData string, err error)
- func (w *Spearlet) StartProviderService()
- func (w *Spearlet) StartServer()
- func (w *Spearlet) Stop()
- type SpearletConfig
- type TaskMetaData
Constants ¶
View Source
const ( HeaderFuncId = "Spear-Func-Id" HeaderFuncName = "Spear-Func-Name" HeaderFuncType = "Spear-Func-Type" )
Variables ¶
This section is empty.
Functions ¶
func SetLogLevel ¶
Types ¶
type Spearlet ¶
type Spearlet struct {
// contains filtered or unexported fields
}
func NewSpearlet ¶
func NewSpearlet(cfg *SpearletConfig) *Spearlet
func (*Spearlet) CommunicationManager ¶ added in v0.0.3
func (w *Spearlet) CommunicationManager() *hostcalls.CommunicationManager
func (*Spearlet) ExecuteTask ¶
func (*Spearlet) ExecuteTaskById ¶ added in v0.0.3
func (*Spearlet) ExecuteTaskByName ¶
func (*Spearlet) Initialize ¶
func (w *Spearlet) Initialize()
func (*Spearlet) StartProviderService ¶ added in v0.0.3
func (w *Spearlet) StartProviderService()
func (*Spearlet) StartServer ¶
func (w *Spearlet) StartServer()
type SpearletConfig ¶
type SpearletConfig struct {
Addr string
Port string
// Search Path
SearchPath []string
// Debug
Debug bool
SpearAddr string
// backend service
StartBackendServices bool
CertFile string
KeyFile string
}
func NewExecSpearletConfig ¶
func NewExecSpearletConfig(debug bool, spearAddr string, spath []string, startBackendServices bool) *SpearletConfig
Click to show internal directories.
Click to hide internal directories.