network

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportNetwork

func ImportNetwork(store Store, net *Network, overwrite bool) error

func InitialiseNetworks

func InitialiseNetworks(store Store, overwrite bool) error

Types

type APIConfig

type APIConfig struct {
	GRPC    GRPCConfig
	REST    RESTConfig
	GraphQL GraphQLConfig
}

type ConsoleConfig

type ConsoleConfig struct {
	URL       string
	LocalPort int
}

type GRPCConfig

type GRPCConfig struct {
	Hosts   []string
	Retries uint64
}

type GraphQLConfig

type GraphQLConfig struct {
	Hosts []string
}

type Network

type Network struct {
	Name        string
	Level       encoding.LogLevel
	TokenExpiry encoding.Duration
	Port        int
	Host        string
	API         APIConfig
	Console     ConsoleConfig

	// TO REMOVE Once the tools use the new API.GRPC
	Nodes GRPCConfig
}

type RESTConfig

type RESTConfig struct {
	Hosts []string
}

type Store

type Store interface {
	NetworkExists(string) (bool, error)
	GetNetwork(string) (*Network, error)
	SaveNetwork(*Network) error
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
store
v1

Jump to

Keyboard shortcuts

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