github.com/weaviate/weaviate@v1.24.6/usecases/locks/connector_schema_lock.go (about) 1 // _ _ 2 // __ _____ __ ___ ___ __ _| |_ ___ 3 // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ 4 // \ V V / __/ (_| |\ V /| | (_| | || __/ 5 // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| 6 // 7 // Copyright © 2016 - 2024 Weaviate B.V. All rights reserved. 8 // 9 // CONTACT: hello@weaviate.io 10 // 11 12 package locks 13 14 // ConnectorSchemaLock to be implemented through local (mutex) or distributed 15 // (etcd, redis, ...) means 16 // 17 // The returned functions are the respective unlock functions 18 type ConnectorSchemaLock interface { 19 LockConnector() (func() error, error) 20 LockSchema() (func() error, error) 21 }