apptail

package
v3.4.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2014 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig()

Types

type Config

type Config struct {
	MaxRecordSize     int    `json:"max_record_size"`
	MaxLinesPerSecond int64  `json:"max_lines_per_second"`
	MaxLinesBurst     uint16 `json:"max_lines_burst"`
	FileSizeLimit     int64  `json:"read_limit"`
}

func GetConfig

func GetConfig() *Config

func (*Config) GetLeakyBucket

func (c *Config) GetLeakyBucket() *ratelimiter.LeakyBucket

type Instance

type Instance struct {
	AppGUID  string
	AppName  string
	AppSpace string
	Type     string
	Index    int
	DockerId string `json:"docker_id"`
	RootPath string
	LogFiles map[string]string
	// contains filtered or unexported fields
}

Instance is the NATS message sent by dea_ng to notify of new instances.

func (*Instance) Identifier

func (instance *Instance) Identifier() string

func (*Instance) SendTimelineEvent

func (instance *Instance) SendTimelineEvent(format string, v ...interface{})

func (*Instance) Tail

func (instance *Instance) Tail()

Tail begins tailing the files for this instance.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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