Documentation
¶
Index ¶
- Constants
- Variables
- type Option
- func BundleValues(b bool) Option
- func BundleWhereIn(b bool) Option
- func CSVGroups(csv string) Option
- func Dump(s string) Option
- func File(s string) Option
- func Filters(s string) Option
- func Format(s string) Option
- func Limit(i int) Option
- func Load(s string) Option
- func LogLinePrefix(s string) Option
- func MatchingGroups(values []string) Option
- func NoAbstract(b bool) Option
- func NoHeaders(b bool) Option
- func NoSavePos(b bool) Option
- func Output(s string) Option
- func PaginationLimit(i int) Option
- func Percentiles(i []int) Option
- func PosFile(s string) Option
- func Reverse(b bool) Option
- func Separator(s string) Option
- func ShowFooters(b bool) Option
- func Sort(s string) Option
- type Options
Constants ¶
View Source
const ( DefaultSortOption = "count" DefaultFormatOption = "table" DefaultLimitOption = 5000 DefaultOutputOption = "simple" DefaultPaginationLimit = 100 DefaultLogLinePrefix = "%m [%p]" DefaultPrintOutputOptionsSeparator = "\n" )
Variables ¶
View Source
var DefaultPercentilesOption = []int{}
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
func BundleValues ¶
func BundleWhereIn ¶
func LogLinePrefix ¶ added in v0.2.0
func MatchingGroups ¶
func NoAbstract ¶
func PaginationLimit ¶
func Percentiles ¶
func ShowFooters ¶
type Options ¶
type Options struct {
File string `mapstructure:"file"`
Dump string `mapstructure:"dump"`
Load string `mapstructure:"load"`
Sort string `mapstructure:"sort"`
Reverse bool `mapstructure:"reverse"`
Format string `mapstructure:"format"`
NoHeaders bool `mapstructure:"noheaders"`
Limit int `mapstructure:"limit"`
MatchingGroups []string `mapstructure:"matching_groups"`
Filters string `mapstructure:"filters"`
PosFile string `mapstructure:"pos_file"`
NoSavePos bool `mapstructure:"nosave_pos"`
Output string `mapstructure:"output"`
Percentiles []int `mapstructure:"percentiles"`
BundleWhereIn bool `mapstructure:"bundle_where_in"`
BundleValues bool `mapstructure:"bundle_values"`
NoAbstract bool `mapstructure:"noabstract"`
PaginationLimit int `mapstructure:"pagination_limit"`
LogLinePrefix string `mapstructure:"log_line_prefix"`
Separator string
}
func NewOptions ¶
func SetOptions ¶
Click to show internal directories.
Click to hide internal directories.