beater

package
v0.0.0-...-07998b0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

Creates beater

Types

type Lookup

type Lookup struct {
	Key   string
	Value string
}

type MlsClass

type MlsClass struct {
	Name   string
	Custom []config.Custom
}

type MlsResource

type MlsResource struct {
	Name        string
	Classes     []MlsClass
	StatusField string
	Statuses    []Lookup
	TypeField   string
	Types       []Lookup
}

type MlsStats

type MlsStats struct {
	Code      string                                          `json:"code"`
	Resources map[string]map[string]map[string]map[string]int `json:"resources"`
}

type RetsSession

type RetsSession struct {
	Code      string
	Config    rets_common.Config
	Session   rets.Requester
	Resources []MlsResource
}

type Retsbeat

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

func (*Retsbeat) GetMetadataResources

func (bt *Retsbeat) GetMetadataResources(sess *RetsSession, statusFields []string, typeFields []string, customQueries []config.Custom) ([]MlsResource, error)

func (*Retsbeat) GetResourceStats

func (bt *Retsbeat) GetResourceStats(sess *RetsSession) (*MlsStats, error)

func (*Retsbeat) Run

func (bt *Retsbeat) Run(b *beat.Beat) error

func (*Retsbeat) Stop

func (bt *Retsbeat) Stop()

Jump to

Keyboard shortcuts

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