Releases: collectd/go-collectd
Releases · collectd/go-collectd
0.5.0
Package collectd.org/config
- New package to represent collectd configurations.
- The
Block
type corresponds tooconfig_item_t
, theValue
type corresponds tooconfig_value_t
. Block.Unmarshal
maps aconfig.Block
hierarchy to a Go type.Block.MarshalText
produces a text output that could be parsed by collectd as a config file.- The
Port
type represents a port number in the configuration. It demonstrates how to override the default unmarshaling rules to implement specialized behavior, such as range checking.
Package collectd.org/plugin
- Configuration callbacks, i.e. types implementing the
Configurer
interface, have been added. They are registered withRegisterConfig
. Thanks to @alowde! - The new
LogWriter
type implements anio.Writer
on top of collectd's logging infrastructure. This allows, for example, to create alog.Logger
backed by collectd.
0.4.0
Package collectd.org/api
- The new
ValueList.Clone
method returns a copy of the value list. - The new
Fanout
type replaces theDispatcher
type. - The
WriterFunc
type wraps a function to implement theWriter
interface. - Meta data has been added to the
ValueList
type.
Package collectd.org/cdtime
New
andTime.Time
: ensure that"time".Time
maps toTime(0)
and vice versa.- Test coverage has been improved.
Package collectd.org/exec
Executor.Run
: Support for context cancellation has been added.- Test coverage has been significantly improved.
Package collectd.org/export
Run
: Support for context cancellation has been added.Run
: No longer aborts if theWriter
fails.
Package collectd.org/format
Putval
: Support for meta data has been added.- Test coverage has been improved.
Package collectd.org/meta
- New package implementing a type meta data,
Data
.
Package collectd.org/network
- Support for passing an existing connection to the server has been added.
Server.ListenAndWrite
: Support for context cancellation has been added.- Test coverage has been significantly improved.
Package collectd.org/plugin
- Support for log callbacks has been added.
- Support for shutdown callbacks has been added. Thanks to @alowde!
- An out-of-bounds write triggered by the
Write
function has been fixed. #26 - The
NewWriter
function has been removed in favor ofapi.WriterFunc
. - The
Reader
interface has been changed to expect acontext.Context
to be passed to read callbacks. The context is cancelled depending on collectd'sTimeout
setting (which defaults to 2× interval). RegisterRead
: collection interval and group name can optionally be specified.- The new
Interval
function returns the interval of read callbacks. - The new
Name
function returns the name of the plugin. - Strings passed to the Register… functions are now freed on shutdown.
- Test coverage has been significantly improved.
Package collectd.org/rpc
- Re-generated protobufs with interface version 4.