helper

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HandleHelperLogCollection = "/api/v1/help/log"
)

Variables

This section is empty.

Functions

func CRLF

func CRLF() string

func Setup

func Setup(controller *control.Controller)

func SprintfWithLF

func SprintfWithLF(format string, a ...interface{}) string

Types

type FdStatus added in v1.4.0

type FdStatus struct {
	ActiveFdCount   int `json:"activeFdCount"`
	InActiveFdCount int `json:"inActiveFdCount"`
}

type FileDetail added in v1.4.0

type FileDetail struct {
	FileName string `json:"filename"`
	Offset   int64  `json:"offset"`
	Size     int64  `json:"size"`
	Modify   int64  `json:"modify"`
	Ignored  bool   `json:"ignored"`
}

func (*FileDetail) FmtDetails added in v1.4.0

func (d *FileDetail) FmtDetails() string

type FileStatus added in v1.4.0

type FileStatus struct {
	PipelineStat map[string]Source `json:"pipeline"`
}

func (*FileStatus) SetStatus added in v1.4.0

func (f *FileStatus) SetStatus(pipeline string, source string, paths []string, detail FileDetail)

type Helper

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

type LogCollectionStatus added in v1.4.0

type LogCollectionStatus struct {
	FdStatus   FdStatus   `json:"fdStatus"`
	FileStatus FileStatus `json:"fileStatus"`
}

type Source added in v1.4.0

type Source struct {
	SourceStat map[string]SourceDetails `json:"source"`
}

type SourceDetails added in v1.4.0

type SourceDetails struct {
	Paths  []string     `json:"paths"`
	Detail []FileDetail `json:"detail"`
}

Jump to

Keyboard shortcuts

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