core

package
v2.3.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

ListenAndUpdate is the main working goroutine of rebellion

Types

type AppInfo

type AppInfo struct {
	PodInfos []PodInfo `json:"PodInfos"`
}

type KafkaAddressList

type KafkaAddressList string

KafkaAddressList represents the json string of Kafka addresses list

type KafkaConfHandler

type KafkaConfHandler struct {
	KafkaAddrs KafkaAddressList
}

KafkaConfHandler renders kafka.toml dynamically

func NewKafkaConfHandler

func NewKafkaConfHandler() *KafkaConfHandler

NewKafkaConfHandler initalizes a pointer of KafkaConfHandler with empty KafkaAddrs

func (*KafkaConfHandler) DynamicallyHandle

func (kc *KafkaConfHandler) DynamicallyHandle(update chan interface{})

DynamicallyHandle implements DynamicalHandler

type LainAppConfHandler

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

LainAppConfHandler handles log files of lain applications

func NewLainAppConfHandler

func NewLainAppConfHandler() *LainAppConfHandler

func (*LainAppConfHandler) DynamicallyHandle

func (lh *LainAppConfHandler) DynamicallyHandle(update chan interface{})

type LogInfo

type LogInfo struct {
	AppName    string
	AppVersion string
	ProcName   string
	InstanceNo int
	LogFile    string
}

type PodInfo

type PodInfo struct {
	InstanceNo int    `json:"InstanceNo"`
	AppVersion string `json:"AppVersion"`
	Annotation string `json:"Annotation"`
}

type Rebellion

type Rebellion struct {
	KafkaAddr   KafkaAddressList
	LogInfos    []LogInfo
	LainletPort string
	// contains filtered or unexported fields
}

Rebellion is the data holder rendering Filebeat template

Jump to

Keyboard shortcuts

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