typesense / typesense-go

Go client for Typesense: https://github.com/typesense/typesense
Apache License 2.0
208 stars 55 forks source link

add support for nearest node & multiple nodes load balancing #170

Closed phiHero closed 2 months ago

phiHero commented 2 months ago

Change Summary

Example

client := typesense.NewClient(
        typesense.WithNearestNode("http://localhost:8108"),
        typesense.WithNodes([]string{"http://localhost:3000", "http://localhost:3001"}),
    )

PR Checklist