MCPcopy
hub / github.com/weaviate/weaviate / Controller

Struct Controller

usecases/namespaces/controller.go:100–104  ·  view source on GitHub ↗

Controller owns the namespace control-plane state. Concurrency contract: hashicorp RAFT invokes Snapshot from a goroutine that may run concurrently with Apply, so the RLock inside Snapshot is load-bearing, not cosmetic. Applies are serialized by RAFT (write-lock semantics); queries take the read-lo

Source from the content-addressed store, hash-verified

98// semantics); queries take the read-lock. Do not remove the Snapshot
99// RLock in a future refactor.
100type Controller struct {
101 mu sync.RWMutex
102 namespaces map[string]*cmd.Namespace
103 logger logrus.FieldLogger
104}
105
106// NewController returns an empty, ready-to-use controller.
107func NewController(logger logrus.FieldLogger) *Controller {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected