collector

package
v0.0.2-testing Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const ModuleID = "Collector"

ModuleID define the id of module

Variables

This section is empty.

Functions

func New

func New(options map[string]string) model.Module

New constructor for Module

Types

type Module

type Module struct {
	Version   string
	Commit    string
	DBFormat  string
	StartTime int64
	Config    map[string]string
}

Module retrieve information form executing sca

func (*Module) Event

func (m *Module) Event() <-chan string

Event return event chan

func (*Module) GetData

func (m *Module) GetData() interface{}

GetData //TODO

func (*Module) ID

func (m *Module) ID() string

ID //TODO

type Response

type Response struct {
	Version    string            `json:"Version,omitempty"`
	Commit     string            `json:"Commit,omitempty"`
	DBFormat   string            `json:"DBFormat,omitempty"`
	StartTime  int64             `json:"StartTime,omitempty"`
	UpdateTime int64             `json:"UpdateTime,omitempty"`
	Status     collectorStatus   `json:"Status,omitempty"`
	Config     map[string]string `json:"Config,omitempty"`
}

Response describe collector informations

Jump to

Keyboard shortcuts

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