baseobject

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: BSD-2-Clause Imports: 5 Imported by: 7

Documentation

Overview

Package baseobject contains the library routines for base stuff of an object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseObject

type BaseObject struct {
	FirstCollected time.Time // the first collection time (for relative data)
	LastCollected  time.Time // the last collection time
	// contains filtered or unexported fields
}

BaseObject holds colllection times and a config

func (*BaseObject) DatabaseFilter added in v1.0.3

func (o *BaseObject) DatabaseFilter() *filter.DatabaseFilter

DatabaseFilter returns the config's DatabaseFilter()

func (*BaseObject) SetConfig added in v1.1.7

func (o *BaseObject) SetConfig(cfg *config.Config)

SetConfig sets the config in this object which can be used later. - it should always be defined (!= nil)

func (BaseObject) Variables added in v0.7.6

func (o BaseObject) Variables() *global.Variables

Variables returns a pointer to the global variables

func (BaseObject) WantRelativeStats

func (o BaseObject) WantRelativeStats() bool

WantRelativeStats indicates whether we want relative stats or not - FIXME and optmise me away

Jump to

Keyboard shortcuts

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