github.com/weaviate/weaviate@v1.24.6/entities/models/schema_cluster_status.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 // Code generated by go-swagger; DO NOT EDIT. 13 14 package models 15 16 // This file was generated by the swagger tool. 17 // Editing this file might prove futile when you re-run the swagger generate command 18 19 import ( 20 "context" 21 22 "github.com/go-openapi/strfmt" 23 "github.com/go-openapi/swag" 24 ) 25 26 // SchemaClusterStatus Indicates the health of the schema in a cluster. 27 // 28 // swagger:model SchemaClusterStatus 29 type SchemaClusterStatus struct { 30 31 // Contains the sync check error if one occurred 32 Error string `json:"error,omitempty"` 33 34 // True if the cluster is in sync, false if there is an issue (see error). 35 Healthy bool `json:"healthy"` 36 37 // Hostname of the coordinating node, i.e. the one that received the cluster. This can be useful information if the error message contains phrases such as 'other nodes agree, but local does not', etc. 38 Hostname string `json:"hostname,omitempty"` 39 40 // The cluster check at startup can be ignored (to recover from an out-of-sync situation). 41 IgnoreSchemaSync bool `json:"ignoreSchemaSync"` 42 43 // Number of nodes that participated in the sync check 44 NodeCount int64 `json:"nodeCount,omitempty"` 45 } 46 47 // Validate validates this schema cluster status 48 func (m *SchemaClusterStatus) Validate(formats strfmt.Registry) error { 49 return nil 50 } 51 52 // ContextValidate validates this schema cluster status based on context it is used 53 func (m *SchemaClusterStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error { 54 return nil 55 } 56 57 // MarshalBinary interface implementation 58 func (m *SchemaClusterStatus) MarshalBinary() ([]byte, error) { 59 if m == nil { 60 return nil, nil 61 } 62 return swag.WriteJSON(m) 63 } 64 65 // UnmarshalBinary interface implementation 66 func (m *SchemaClusterStatus) UnmarshalBinary(b []byte) error { 67 var res SchemaClusterStatus 68 if err := swag.ReadJSON(b, &res); err != nil { 69 return err 70 } 71 *m = res 72 return nil 73 }