github.com/weaviate/weaviate@v1.24.6/adapters/handlers/rest/configure_weaviate.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 rest with all rest API functions. 13 package rest 14 15 import ( 16 "crypto/tls" 17 18 "github.com/go-openapi/swag" 19 20 "github.com/weaviate/weaviate/adapters/handlers/rest/operations" 21 "github.com/weaviate/weaviate/usecases/config" 22 ) 23 24 var connectorOptionGroup *swag.CommandLineOptionsGroup 25 26 // configureAPI -> see configure_api.go 27 28 // configureServer -> see configure_server.go 29 30 func configureFlags(api *operations.WeaviateAPI) { 31 connectorOptionGroup = config.GetConfigOptionGroup() 32 33 api.CommandLineOptionsGroups = []swag.CommandLineOptionsGroup{ 34 *connectorOptionGroup, 35 } 36 } 37 38 // The TLS configuration before HTTPS server starts. 39 func configureTLS(tlsConfig *tls.Config) { 40 // Make all necessary changes to the TLS configuration here. 41 }