github.com/weaviate/weaviate@v1.24.6/adapters/handlers/graphql/local/get/resolver.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 get 13 14 import ( 15 "context" 16 17 "github.com/weaviate/weaviate/entities/dto" 18 "github.com/weaviate/weaviate/entities/models" 19 ) 20 21 // Resolver is a local abstraction of the required UC resolvers 22 type Resolver interface { 23 GetClass(ctx context.Context, principal *models.Principal, info dto.GetParams) ([]interface{}, error) 24 } 25 26 // RequestsLog is a local abstraction on the RequestsLog that needs to be 27 // provided to the graphQL API in order to log Local.Get queries. 28 type RequestsLog interface { 29 Register(requestType string, identifier string) 30 }