circular

package
v0.0.0-...-6fc7b46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentsBuffer

type DeploymentsBuffer struct {
	// contains filtered or unexported fields
}

A Ring buffer for Deployments

func NewDeploymentsBuffer

func NewDeploymentsBuffer(size int) *DeploymentsBuffer

Return a new, properly configured circular buffer

func (*DeploymentsBuffer) All

Get all the items from the buffer that have a value, return as linear slice

func (*DeploymentsBuffer) GetLast

func (b *DeploymentsBuffer) GetLast() *datatypes.Deployment

func (*DeploymentsBuffer) Insert

func (b *DeploymentsBuffer) Insert(deploy *datatypes.Deployment)

type SvcEventsBuffer

type SvcEventsBuffer struct {
	// contains filtered or unexported fields
}

A Ring buffer for SvcEvents

func NewSvcEventsBuffer

func NewSvcEventsBuffer(size int) *SvcEventsBuffer

Return a new, properly configured circular buffer

func (*SvcEventsBuffer) All

Get all the items from the buffer that have a value, return as linear slice

func (*SvcEventsBuffer) AllRaw

func (*SvcEventsBuffer) Insert

func (b *SvcEventsBuffer) Insert(evt catalog.StateChangedEvent)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL