cmd

package
v0.0.0-...-87d874c Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FlagLogLevel      LogLevel  = LogLevel{Lvl: zerolog.ErrorLevel}
	FlagLogFormat     LogFormat = LogFormat{/* contains filtered or unexported fields */}
	FlagLogOut        string
	FlagCPUProfile    string
	FlagMemProfile    string
	FlagTrace         string
	FlagExitAfter     time.Duration
	FlagNumberOfNodes uint = 3
	FlagQuiet         bool
	FlagQueries       []string
	FlagJSONPretty    bool
)

Functions

func CloseProfile

func CloseProfile(traceFile string)

func PrintFlagsJSON

func PrintFlagsJSON(cmd *cobra.Command) json.RawMessage

func StartProfile

func StartProfile(traceFile string)

Types

type LogFormat

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

func (*LogFormat) Set

func (f *LogFormat) Set(v string) error

func (LogFormat) String

func (f LogFormat) String() string

func (LogFormat) Type

func (f LogFormat) Type() string

type LogLevel

type LogLevel struct {
	Lvl zerolog.Level
}

func (*LogLevel) Set

func (f *LogLevel) Set(v string) error

func (LogLevel) String

func (f LogLevel) String() string

func (LogLevel) Type

func (f LogLevel) Type() string

type MutableNode

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

func NewMutableNode

func NewMutableNode(key []byte) *MutableNode

func (*MutableNode) Height

func (em *MutableNode) Height() int16

func (*MutableNode) Key

func (em *MutableNode) Key() []byte

func (*MutableNode) Left

func (em *MutableNode) Left() avl.MutableNode

func (*MutableNode) LeftKey

func (em *MutableNode) LeftKey() []byte

func (*MutableNode) Merge

func (em *MutableNode) Merge(node avl.MutableNode) error

func (*MutableNode) Right

func (em *MutableNode) Right() avl.MutableNode

func (*MutableNode) RightKey

func (em *MutableNode) RightKey() []byte

func (*MutableNode) SetHeight

func (em *MutableNode) SetHeight(height int16) error

func (*MutableNode) SetLeft

func (em *MutableNode) SetLeft(node avl.MutableNode) error

func (*MutableNode) SetRight

func (em *MutableNode) SetRight(node avl.MutableNode) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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