github.com/weaviate/weaviate@v1.24.6/usecases/sharding/remote_node_incoming.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 package sharding 13 14 import ( 15 "context" 16 17 "github.com/weaviate/weaviate/entities/models" 18 ) 19 20 type RemoteNodeIncomingRepo interface { 21 IncomingGetNodeStatus(ctx context.Context, className, output string) (*models.NodeStatus, error) 22 } 23 24 type RemoteNodeIncoming struct { 25 repo RemoteNodeIncomingRepo 26 } 27 28 func NewRemoteNodeIncoming(repo RemoteNodeIncomingRepo) *RemoteNodeIncoming { 29 return &RemoteNodeIncoming{ 30 repo: repo, 31 } 32 } 33 34 func (rni *RemoteNodeIncoming) GetNodeStatus(ctx context.Context, className, output string) (*models.NodeStatus, error) { 35 return rni.repo.IncomingGetNodeStatus(ctx, className, output) 36 }