Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDefault = Config{ UseMemoryFallback: true, FileWorkspace: "/tmp", FleMaxCaraptedFile: 1, ShowSuccessfulInfo: false, SendInterval: 10 * time.Second, SendLimit: 1000, }
ConfigDefault is the default config
Functions ¶
func NewPool ¶
func NewPool(newQueue NewQueueFunc) ballistic.Pool
Types ¶
type Config ¶
type Config struct { Logger Logger SendInterval time.Duration SendLimit int UseMemoryFallback bool FileWorkspace string FleMaxCaraptedFile int ShowSuccessfulInfo bool }
Config defines the config for file queue.
type Logger ¶
type Logger interface { Infow(msg string, keysAndValues ...interface{}) Warnw(msg string, keysAndValues ...interface{}) Errorw(msg string, keysAndValues ...interface{}) }
func NewStdLogger ¶
Click to show internal directories.
Click to hide internal directories.