Documentation ¶
Overview ¶
_ _
*__ _____ __ ___ ___ __ _| |_ ___ *\ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ * \ V V / __/ (_| |\ V /| | (_| | || __/ * \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| * * Copyright © 2016 - 2019 Weaviate. All rights reserved. * LICENSE: https://github.com/creativesoftwarefdn/weaviate/blob/develop/LICENSE.md * DESIGN & CONCEPT: Bob van Luijt (@bobvanluijt) * CONTACT: hello@creativesoftwarefdn.org
Index ¶
- type FakeNetwork
- func (fn FakeNetwork) GetNetworkResolver() graphqlnetwork.Resolver
- func (fn FakeNetwork) GetStatus() string
- func (fn FakeNetwork) IsReady() bool
- func (fn FakeNetwork) ListPeers() (peers.Peers, error)
- func (fn FakeNetwork) ProxyGetInstance(graphqlnetworkGet.Params) (*models.GraphQLResponse, error)
- func (fn FakeNetwork) ProxyGetMetaInstance(graphqlnetworkGetMeta.Params) (*models.GraphQLResponse, error)
- func (fn FakeNetwork) RegisterSchemaGetter(schemaGetter network.SchemaGetter)
- func (fn FakeNetwork) RegisterUpdatePeerCallback(callbackFn network.PeerUpdateCallback)
- func (fn FakeNetwork) UpdatePeers(new_peers peers.Peers) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeNetwork ¶
type FakeNetwork struct { }
func (FakeNetwork) GetNetworkResolver ¶
func (fn FakeNetwork) GetNetworkResolver() graphqlnetwork.Resolver
GetNetworkResolver for now simply returns itself because the network is not fully plugable yet. Once we have made the network pluggable, then this would be a method on the connector which returns the actual plugged in Network
func (FakeNetwork) GetStatus ¶
func (fn FakeNetwork) GetStatus() string
func (FakeNetwork) IsReady ¶
func (fn FakeNetwork) IsReady() bool
func (FakeNetwork) ProxyGetInstance ¶
func (fn FakeNetwork) ProxyGetInstance(graphqlnetworkGet.Params) (*models.GraphQLResponse, error)
func (FakeNetwork) ProxyGetMetaInstance ¶
func (fn FakeNetwork) ProxyGetMetaInstance(graphqlnetworkGetMeta.Params) (*models.GraphQLResponse, error)
func (FakeNetwork) RegisterSchemaGetter ¶
func (fn FakeNetwork) RegisterSchemaGetter(schemaGetter network.SchemaGetter)
RegisterSchemaGetter does nothing, since it's a fake network but also doesn't error
func (FakeNetwork) RegisterUpdatePeerCallback ¶
func (fn FakeNetwork) RegisterUpdatePeerCallback(callbackFn network.PeerUpdateCallback)
func (FakeNetwork) UpdatePeers ¶
func (fn FakeNetwork) UpdatePeers(new_peers peers.Peers) error