container

package
v0.0.0-...-780ac92 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCotainer

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

BaseContainer - A fundamental container that provides basic functionalities

func NewBaseCotainer

func NewBaseCotainer() *BaseCotainer

NewBaseContainer - Creates a new instance of the base container

func (*BaseCotainer) Config

func (b *BaseCotainer) Config() *config.JSON

Config - Represents the JSON-formatted configuration settings for the container

func (*BaseCotainer) Metrics

func (b *BaseCotainer) Metrics() *Metrics

Metrics - Represents the measurements or quantifications of some aspect of the container's operation

func (*BaseCotainer) SetConfig

func (b *BaseCotainer) SetConfig(conf *config.JSON)

SetConfig - Sets the JSON configuration for the container

func (*BaseCotainer) SetMetrics

func (b *BaseCotainer) SetMetrics(metrics *Metrics)

SetMetrics - Sets the metrics for the container

type Container

type Container interface {
	Start() error
	Metrics() *Metrics
}

Container - A component that holds or encapsulates other components

type Metrics

type Metrics struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Metrics - Metrics in JSON format

func NewMetrics

func NewMetrics() *Metrics

NewMetrics - New instance of metrics in JSON format

func (*Metrics) Get

func (m *Metrics) Get(key string) *encoding.JSON

Get - Gets the value at the specified path

func (*Metrics) JSON

func (m *Metrics) JSON() *encoding.JSON

JSON - Represents data in JSON format

func (*Metrics) Set

func (m *Metrics) Set(path string, value interface{}) error

Set - Sets the value at the specified path

Jump to

Keyboard shortcuts

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