milvus-sdk-go

module
Version: v2.0.0-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2021 License: Apache-2.0

README

Milvus Go SDK

license Mergify Status Go Reference

Go SDK for Milvus. To contribute code to this project, please read our contribution guidelines first.

SDK versions

Milvus version Recommended Go SDK version
2.0.0-rc 2.0.0-rc
1.1.x 1.1.0
1.0.x 1.0.0

Note: Major versions is NOT compatible between Milvus and SDK

Getting started

Prerequisites

Go 1.15 or higher

Install Milvus Go SDK
  1. Use go get to install the latest version of the Milvus Go SDK and dependencies:

    go get -u github.com/milvus-io/milvus-sdk-go/milvus/v2
    
  2. Include the Milvus Go SDK in your application:

    import "github.com/milvus-io/milvus-sdk-go/milvus/v2/client"
    
    //...other snippet ...
    client, err := client.NewGrpcClient(context.Background(), "address_of_milvus")
    if err != nil {
        // handle error
    }
    client.HasCollection(context.Background(), "YOUR_COLLECTION_NAME")
    
API Documentation

Refer to https://godoc.org/github.com/milvus-io/milvus-sdk-go/v2 for the GO SDK API documentation.

Examples

See examples about how to use this package to communicate with Milvus

Code format

The Go source code is formatted using gofmt and golint.

Directories

Path Synopsis
Package client provides milvus client functions
Package client provides milvus client functions
Package entity defines entities used in sdk
Package entity defines entities used in sdk
examples
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL