mongo

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, protoInstance proto.Instance) analyzer.Analyzer

Types

type MongoAnalyzer

type MongoAnalyzer struct {

	// state
	sync.RWMutex // Lock() to protect internal consistency of the service
	// contains filtered or unexported fields
}

MongoAnalyzer

func (*MongoAnalyzer) Config

func (m *MongoAnalyzer) Config() pc.QAN

Config returns analyzer running configuration

func (*MongoAnalyzer) GetDefaults

func (m *MongoAnalyzer) GetDefaults(uuid string) map[string]interface{}

func (*MongoAnalyzer) SetConfig

func (m *MongoAnalyzer) SetConfig(setConfig pc.QAN)

SetConfig sets the config

func (*MongoAnalyzer) Start

func (m *MongoAnalyzer) Start() error

Start starts analyzer but doesn't wait until it exits

func (*MongoAnalyzer) Status

func (m *MongoAnalyzer) Status() map[string]string

Status returns list of statuses

func (*MongoAnalyzer) Stop

func (m *MongoAnalyzer) Stop() error

Stop stops running analyzer, waits until it stops

func (*MongoAnalyzer) String

func (m *MongoAnalyzer) String() string

String returns human readable identification of Analyzer

type Profiler

type Profiler interface {
	Start() error
	Stop() error
	Status() map[string]string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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