Documentation ¶
Index ¶
- func ReadCarbonlinkRequest(reader io.Reader) ([]byte, error)
- type Cache
- func (c *Cache) Add(p *points.Points)
- func (c *Cache) Get() *points.Points
- func (c *Cache) In() chan *points.Points
- func (c *Cache) Out() chan *points.Points
- func (c *Cache) Pop() *points.Points
- func (c *Cache) Query() chan *Query
- func (c *Cache) Remove(key string)
- func (c *Cache) SetGraphPrefix(prefix string)
- func (c *Cache) SetInputCapacity(size int)
- func (c *Cache) SetMaxSize(maxSize int)
- func (c *Cache) SetOutputChanSize(size int)
- func (c *Cache) Size() int
- func (c *Cache) Start()
- func (c *Cache) Stop()
- type CarbonlinkListener
- func (listener *CarbonlinkListener) Addr() net.Addr
- func (listener *CarbonlinkListener) Listen(addr *net.TCPAddr) error
- func (listener *CarbonlinkListener) SetQueryTimeout(timeout time.Duration)
- func (listener *CarbonlinkListener) SetReadTimeout(timeout time.Duration)
- func (listener *CarbonlinkListener) Stop()
- type CarbonlinkRequest
- type Query
- type Reply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache stores and aggregate metrics in memory
func (*Cache) SetGraphPrefix ¶
SetGraphPrefix for internal cache metrics
func (*Cache) SetInputCapacity ¶
SetInputCapacity set buffer size of input channel. Call before In() getter
type CarbonlinkListener ¶
type CarbonlinkListener struct {
// contains filtered or unexported fields
}
CarbonlinkListener receive cache Carbonlinkrequests from graphite-web
func NewCarbonlinkListener ¶
func NewCarbonlinkListener(queryChan chan *Query) *CarbonlinkListener
NewCarbonlinkListener create new instance of CarbonlinkListener
func (*CarbonlinkListener) Addr ¶ added in v0.5.1
func (listener *CarbonlinkListener) Addr() net.Addr
Addr returns binded socket address. For bind port 0 in tests
func (*CarbonlinkListener) Listen ¶
func (listener *CarbonlinkListener) Listen(addr *net.TCPAddr) error
Listen bind port. Receive messages and send to out channel
func (*CarbonlinkListener) SetQueryTimeout ¶
func (listener *CarbonlinkListener) SetQueryTimeout(timeout time.Duration)
SetQueryTimeout for queries to cache
func (*CarbonlinkListener) SetReadTimeout ¶
func (listener *CarbonlinkListener) SetReadTimeout(timeout time.Duration)
SetReadTimeout for read request from client
type CarbonlinkRequest ¶
CarbonlinkRequest ...
func NewCarbonlinkRequest ¶
func NewCarbonlinkRequest() *CarbonlinkRequest
NewCarbonlinkRequest creates instance of CarbonlinkRequest
func ParseCarbonlinkRequest ¶
func ParseCarbonlinkRequest(data []byte) (*CarbonlinkRequest, error)
ParseCarbonlinkRequest from pickle encoded data
Click to show internal directories.
Click to hide internal directories.