config

package
v0.0.0-...-a0027d1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2016 License: BSD-3-Clause Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection struct {
	// contains filtered or unexported fields
}

Collection represents the config collection.

func NewCollection

func NewCollection() *Collection

NewCollection creates a new config collection. It provides configuration for the whole neural network.

func (*Collection) Config

func (c *Collection) Config() *config.Object

Config returns the config file config of the config collection.

func (*Collection) Endpoint

func (c *Collection) Endpoint() *endpoint.Collection

Endpoint returns the endpoint collection of the config collection.

func (*Collection) Merge

func (c *Collection) Merge(flagSet *pflag.FlagSet) error

Merge combines values of a flag-set with these of their corresponding environment and config file variables, in this order.

func (*Collection) SetConfig

func (c *Collection) SetConfig(config *config.Object)

SetConfig sets the config file config for the config collection.

func (*Collection) SetEndpointCollection

func (c *Collection) SetEndpointCollection(endpointCollection *endpoint.Collection)

SetEndpointCollection sets the endpoint collection for the config collection.

func (*Collection) SetSpaceCollection

func (c *Collection) SetSpaceCollection(spaceCollection *space.Collection)

SetSpaceCollection sets the space collection for the config collection.

func (*Collection) SetStorageCollection

func (c *Collection) SetStorageCollection(storageCollection *storage.Collection)

SetStorageCollection sets the storage collection for the config collection.

func (*Collection) Space

func (c *Collection) Space() *space.Collection

Space returns the space collection of the config collection.

func (*Collection) Storage

func (c *Collection) Storage() *storage.Collection

Storage returns the storage collection of the config collection.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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