Internally, the high-level client uses a low-level gRPC client to interact with
Qdrant. qdrant.Config provides additional options to control how the gRPC
client is configured. The following example configures API key authentication with TLS:
import "github.com/qdrant/go-client/qdrant"
client, err := qdrant.NewClient(&qdrant.Config{
Host: "xyz-example.eu-central.aws.cloud.qdrant.io",
Port: 6334,
APIKey: "<your-api-key>",
UseTLS: true, // uses default config with minimum TLS version set to 1.3
// TLSConfig: &tls.Config{...},
// GrpcOptions: []grpc.DialOption{},
})
Working with collections
Once a client has been created, create a new collection