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

Method Settings

pkg/cluster/node.go:393–395  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

391}
392
393func (b *nodeBase) Settings(ctx context.Context) *types.NodeSetting {
394 return b.model.Settings
395}
396
397func NodeIdFromContext(ctx context.Context) int {
398 nodeIdStr, ok := ctx.Value(SlaveNodeIDCtx{}).(string)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected