master

package
v0.0.0-...-5ab7537 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	IsLocal bool
	Workers map[string]string
	// contains filtered or unexported fields
}

func NewContext

func NewContext(isLocal bool, minWorkers int, masterPath string) *Context

func (*Context) ExecuteAction

func (c *Context) ExecuteAction(actionId string, list *common.LinkedList[common.Maplan]) []*protos.TaskResult

func (*Context) InitContext

func (c *Context) InitContext()

type Mafream

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

func NewDataFrame

func NewDataFrame(c *Context, preplan *common.Maplan) *Mafream

func (*Mafream) Count

func (w *Mafream) Count() int

func (*Mafream) Show

func (w *Mafream) Show() *Mafream

type Master

type Master struct {
	MasterPath string

	Http *gin.Engine
	// contains filtered or unexported fields
}

func NewMaster

func NewMaster(isLocal bool, host string, port int, minWorkers int) *Master

func (*Master) Load

func (m *Master) Load(path string) *Mafream

func (*Master) RegisterHandler

func (m *Master) RegisterHandler(c *gin.Context)

Jump to

Keyboard shortcuts

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