Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type DiskvSpooler
- func (s *DiskvSpooler) Files() <-chan string
- func (s *DiskvSpooler) Read(file string) ([]byte, error)
- func (s *DiskvSpooler) Remove(file string) error
- func (s *DiskvSpooler) Start(sz Serializer) error
- func (s *DiskvSpooler) Status() map[string]string
- func (s *DiskvSpooler) Stop() error
- func (s *DiskvSpooler) Write(service string, data interface{}) error
- type JsonGzipSerializer
- type JsonSerializer
- type Manager
- type Sender
- type Serializer
- type Spooler
Constants ¶
View Source
const ( DEFAULT_DATA_ENCODING = "" DEFAULT_DATA_SEND_INTERVAL = 63 )
View Source
const ( WRITE_BUFFER = 100 CACHE_SIZE = 1024 * 1024 * 8 // 8M )
Variables ¶
View Source
var ErrSpoolTimeout = errors.New("Timeout spooling data")
Functions ¶
This section is empty.
Types ¶
type DiskvSpooler ¶
type DiskvSpooler struct {
// contains filtered or unexported fields
}
http://godoc.org/github.com/peterbourgon/diskv
func NewDiskvSpooler ¶
func NewDiskvSpooler(logger *pct.Logger, dataDir string, hostname string) *DiskvSpooler
func (*DiskvSpooler) Files ¶
func (s *DiskvSpooler) Files() <-chan string
func (*DiskvSpooler) Remove ¶
func (s *DiskvSpooler) Remove(file string) error
func (*DiskvSpooler) Start ¶
func (s *DiskvSpooler) Start(sz Serializer) error
func (*DiskvSpooler) Status ¶
func (s *DiskvSpooler) Status() map[string]string
func (*DiskvSpooler) Stop ¶
func (s *DiskvSpooler) Stop() error
func (*DiskvSpooler) Write ¶
func (s *DiskvSpooler) Write(service string, data interface{}) error
type JsonGzipSerializer ¶
type JsonGzipSerializer struct {
// contains filtered or unexported fields
}
func NewJsonGzipSerializer ¶
func NewJsonGzipSerializer() *JsonGzipSerializer
func (*JsonGzipSerializer) Concurrent ¶
func (s *JsonGzipSerializer) Concurrent() bool
func (*JsonGzipSerializer) Encoding ¶
func (s *JsonGzipSerializer) Encoding() string
func (*JsonGzipSerializer) ToBytes ¶
func (s *JsonGzipSerializer) ToBytes(data interface{}) ([]byte, error)
type JsonSerializer ¶
type JsonSerializer struct { }
func NewJsonSerializer ¶
func NewJsonSerializer() *JsonSerializer
func (*JsonSerializer) Concurrent ¶
func (s *JsonSerializer) Concurrent() bool
func (*JsonSerializer) Encoding ¶
func (s *JsonSerializer) Encoding() string
func (*JsonSerializer) ToBytes ¶
func (j *JsonSerializer) ToBytes(data interface{}) ([]byte, error)
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
type Serializer ¶
Click to show internal directories.
Click to hide internal directories.