mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
16 lines
336 B
Go
16 lines
336 B
Go
package config
|
|
|
|
import (
|
|
"github.com/crawlab-team/crawlab/core/entity"
|
|
"github.com/crawlab-team/crawlab/core/utils"
|
|
)
|
|
|
|
func newConfig() (cfg *entity.NodeInfo) {
|
|
return &entity.NodeInfo{
|
|
Key: utils.GetNodeKey(),
|
|
Name: utils.GetNodeName(),
|
|
IsMaster: utils.IsMaster(),
|
|
MaxRunners: utils.GetNodeMaxRunners(),
|
|
}
|
|
}
|