dao

package
v0.0.0-...-cbea63e Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Keyspace for C* storage
	Keyspace = "configservice"
	// CfConfig is CF where we store all config
	CfConfig = "configservice"
	// CfAudit is CF where we store a timeseries of all changes
	CfAudit = "audit"
	// CfAuditIndex is where we keep an index of which rows exist in our time series
	CfAuditIndex = "auditIndex"
	// CfAuditService is CF where we store a timeseries of all changes for a service
	CfAuditService = "auditService"
	// CfAuditServiceIndex is where we keep an index of which rows exist in our time series
	CfAuditServiceIndex = "auditServiceIndex"
)

Variables

View Source
var (
	// Cfs is a list of all active CFs, which we should monitor
	Cfs = []string{CfConfig, CfAudit, CfAuditIndex, CfAuditService, CfAuditServiceIndex}
)

Functions

This section is empty.

Types

type CassandraRepository

type CassandraRepository struct{}

func (*CassandraRepository) ChangeLog

func (r *CassandraRepository) ChangeLog(start, end time.Time, count int, lastId string) ([]*domain.ChangeSet, string, error)

ChangeLog returns a list of changesets within a certain time range

func (CassandraRepository) ReadConfig

func (r CassandraRepository) ReadConfig(ids []string) ([]*domain.ChangeSet, error)

ReadConfig fetches N config definitions

func (*CassandraRepository) ServiceChangeLog

func (r *CassandraRepository) ServiceChangeLog(id string, start, end time.Time, count int, lastId string) ([]*domain.ChangeSet, string, error)

ServiceChangeLog returns a list of changesets within a certain time range for the given ID

func (*CassandraRepository) UpdateConfig

func (r *CassandraRepository) UpdateConfig(cs *domain.ChangeSet) error

UpdateConfig writes out a changeset

Jump to

Keyboard shortcuts

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