Documentation ¶
Index ¶
- type Collection
- func (c *Collection) Config() *config.Object
- func (c *Collection) Endpoint() *endpoint.Collection
- func (c *Collection) Merge(flagSet *pflag.FlagSet) error
- func (c *Collection) SetConfig(config *config.Object)
- func (c *Collection) SetEndpointCollection(endpointCollection *endpoint.Collection)
- func (c *Collection) SetSpaceCollection(spaceCollection *space.Collection)
- func (c *Collection) SetStorageCollection(storageCollection *storage.Collection)
- func (c *Collection) Space() *space.Collection
- func (c *Collection) Storage() *storage.Collection
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.