Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Go] fix broken struct tags #327

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions go/plugins/pinecone/pinecone.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ type IndexData struct {
Host string `json:"host"` // index host name
Metric string `json:"metric"` // index metric: euclidean, cosine, dotproduct
Spec struct {
Pod *Pod `json:"pod,omitempty"` // for pod-based indexes
Serverless *Serverless `json:serverless,omitempty"` // for serverless indexes
Pod *Pod `json:"pod,omitempty"` // for pod-based indexes
Serverless *Serverless `json:"serverless,omitempty"` // for serverless indexes
} `json:"spec"`
Status struct {
Ready bool `json:"ready"` // whether the index is ready
Expand All @@ -97,7 +97,7 @@ type IndexData struct {
// Pod-based indexes are associated with a set of hardware configurations.
type Pod struct {
Environment string `json:"environment"` // index environment: hosting provider and region
Metadata *PodMetadata `json:metadata_config,omitempty"`
Metadata *PodMetadata `json:"metadata_config,omitempty"`
Type string `json:"pod_type"` // pod type and size
Pods int `json:"pods"` // number of pods in index
Replicas int `json:"replicas"` // number of replicas
Expand Down
Loading