filelogger

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BufSize = (4 << 20) / 128 * 127

	BlockGasLimit = int64(10_000_000_000)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectoryName

type DirectoryName string

DirectoryName file directory

const (
	// DirectoryNameValidation validation result file directory
	DirectoryNameValidation DirectoryName = "Validation"
	// DirectoryNameWorkload Workload file directory
	DirectoryNameWorkload DirectoryName = "Workload"
)

type Manager

type Manager struct {
	*db.SQLDB
	dtypes.ServerID // scheduler server id
	// contains filtered or unexported fields
}

Manager is the node manager responsible for managing the online nodes

func NewManager

func NewManager(sdb *db.SQLDB, serverID dtypes.ServerID, lmgr *leadership.Manager) *Manager

NewManager creates a new instance of the node manager

type Writer

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

Writer struct

func NewWriter

func NewWriter(directory DirectoryName, filename string) (*Writer, error)

NewWriter creates a new LogFileWriter. It takes a directory and filename, and creates a new file in this directory.

func (*Writer) Close

func (w *Writer) Close() error

Close closes the file.

func (*Writer) WriteData

func (w *Writer) WriteData(data string) error

WriteData writes data to the file. It locks the file during the write to prevent data races.

Jump to

Keyboard shortcuts

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