fake

package
v0.0.0-...-8832f83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

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

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) ListPeers

func (fn FakeNetwork) ListPeers() (peers.Peers, error)

func (FakeNetwork) ProxyGetInstance

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL