common

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package common contains share functionality for the command line tool commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eval added in v0.3.0

func Eval(ctx context.Context, args []string, cmds []*command.Command) int

Eval of the command line version tool. This allows injecting multiple drivers.

func Help added in v0.3.0

func Help(args []string, cmds []*command.Command) int

Help prints the requested help

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

func InitializeDriver(driverName string, drivers map[string]StoreGenerator) (storage.Store, error)

InitializeDriver attemps to initalize the driver.

func ParseChannelSizeFlag added in v0.2.0

func ParseChannelSizeFlag(flag string) (int, error)

ParseChannelSizeFlag attempts to parse the "channel_size" flag.

func Run added in v0.3.0

func Run(driverName string, drivers map[string]StoreGenerator, chanSize, bulkTripleOpSize, builderSize int) int

Run executes the main of the command line tool.

Types

type StoreGenerator added in v0.3.0

type StoreGenerator func() (storage.Store, error)

StoreGenerator is a function that generate a new valid storage.Store.

Jump to

Keyboard shortcuts

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