vhostmd

package
v1.4.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetricsIODisk

func NewMetricsIODisk(filePath string) *vhostmd

Types

type Disk

type Disk struct {
	Header *Header
	Raw    []byte
}

func (*Disk) Metrics

func (d *Disk) Metrics() (*api.Metrics, error)

func (*Disk) String

func (d *Disk) String() string

func (*Disk) Verify

func (d *Disk) Verify() error
type Header struct {
	Signature [4]byte
	Flag      int32
	Checksum  int32
	Length    int32
}

type MetricsIO

type MetricsIO interface {
	Create() error
	Read() (*api.Metrics, error)
	Write(metrics *api.Metrics) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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