MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / IsMaster

Method IsMaster

pkg/cluster/node.go:35–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 ID() int
34 Name() string
35 IsMaster() bool
36 // CreateTask creates a task on the node. It does not have effect on master node.
37 CreateTask(ctx context.Context, taskType string, state string) (int, error)
38 // GetTask returns the task summary of the task with the given id.

Callers 7

SlaveRPCSignRequiredFunction · 0.65
DoMethod · 0.65
DoMethod · 0.65
DoMethod · 0.65
DoMethod · 0.65
DoMethod · 0.65
CleanupMethod · 0.65

Implementers 1

nodeBasepkg/cluster/node.go

Calls

no outgoing calls

Tested by

no test coverage detected