indexer

package
v0.0.0-...-e3eb743 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: BSD-2-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexingStartedEvent = "indexer.indexing_started"
	IndexingStoppedEvent = "indexer.indexing_stopped"
)

Variables

This section is empty.

Functions

func Client

func Client() *http.Client

func IsRunning

func IsRunning() bool

func Pid

func Pid() (int, error)

func SocketPath

func SocketPath() string

func Stats

func Stats() (rindex.IndexStats, error)

Types

type Indexer

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

func Daemon

func Daemon() *Indexer

func New

func New() *Indexer

func (*Indexer) Start

func (i *Indexer) Start()

func (*Indexer) Stop

func (i *Indexer) Stop() error

type ProcStats

type ProcStats struct {
	RSS       uint64
	Duration  uint64
	StartTime time.Time
	CpuTime   uint64
}

func GetProcStats

func GetProcStats() (ProcStats, error)

Jump to

Keyboard shortcuts

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