Documentation
¶
Overview ¶
Package common contains share functionality for the command line tool commands.
Index ¶
- func Eval(ctx context.Context, args []string, cmds []*command.Command) int
- func Help(args []string, cmds []*command.Command) int
- func InitializeCommands(driver storage.Store, chanSize, bulkTripleOpSize, builderSize int) []*command.Command
- func InitializeDriver(driverName string, drivers map[string]StoreGenerator) (storage.Store, error)
- func ParseChannelSizeFlag(flag string) (int, error)
- func Run(driverName string, drivers map[string]StoreGenerator, ...) int
- type StoreGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Eval ¶ added in v0.3.0
Eval of the command line version tool. This allows injecting multiple drivers.
func InitializeCommands ¶ added in v0.3.0
func InitializeCommands(driver storage.Store, chanSize, bulkTripleOpSize, builderSize int) []*command.Command
InitializeCommands intializes the avaialbe commands with the given storage instance.
func InitializeDriver ¶ added in v0.3.0
InitializeDriver attemps to initalize the driver.
func ParseChannelSizeFlag ¶ added in v0.2.0
ParseChannelSizeFlag attempts to parse the "channel_size" flag.
Types ¶
type StoreGenerator ¶ added in v0.3.0
StoreGenerator is a function that generate a new valid storage.Store.
Click to show internal directories.
Click to hide internal directories.