github.com/weaviate/weaviate@v1.24.6/entities/models/shard_status_get_response.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  // ShardStatusGetResponse Response body of shard status get request
    27  //
    28  // swagger:model ShardStatusGetResponse
    29  type ShardStatusGetResponse struct {
    30  
    31  	// Name of the shard
    32  	Name string `json:"name,omitempty"`
    33  
    34  	// Status of the shard
    35  	Status string `json:"status,omitempty"`
    36  
    37  	// Size of the vector queue of the shard
    38  	VectorQueueSize int64 `json:"vectorQueueSize"`
    39  }
    40  
    41  // Validate validates this shard status get response
    42  func (m *ShardStatusGetResponse) Validate(formats strfmt.Registry) error {
    43  	return nil
    44  }
    45  
    46  // ContextValidate validates this shard status get response based on context it is used
    47  func (m *ShardStatusGetResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
    48  	return nil
    49  }
    50  
    51  // MarshalBinary interface implementation
    52  func (m *ShardStatusGetResponse) MarshalBinary() ([]byte, error) {
    53  	if m == nil {
    54  		return nil, nil
    55  	}
    56  	return swag.WriteJSON(m)
    57  }
    58  
    59  // UnmarshalBinary interface implementation
    60  func (m *ShardStatusGetResponse) UnmarshalBinary(b []byte) error {
    61  	var res ShardStatusGetResponse
    62  	if err := swag.ReadJSON(b, &res); err != nil {
    63  		return err
    64  	}
    65  	*m = res
    66  	return nil
    67  }