applog_endpoint

package
v3.6.0-rerelease-azure... Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2015 License: Apache-2.0 Imports: 12 Imported by: 0

README

applog endpoint app

websocket server for s logs, exposing the apptail stream.

development

for cli testing of the WebSocket stream, try wscat, which can be done easily on a Stackato VM as:

stackon-fetch http://stackato:suchDogeW0w@docker-internal.stackato.com master activestate/wscat
export TOKEN='???'   # set token here
export APPGUID='???' # set GUID here
docker run -i -t activestate/wst wscat -c "ws://logs.stackato-abcd.local/tail?token=$TOKEN&appid=$APPGUID"

Documentation

Index

Constants

View Source
const COMPONENT = "websocket_endpoint"
View Source
const PORT = 5722

Variables

Functions

func RouterMain

func RouterMain()

func Serve

func Serve() error

Types

type Arguments

type Arguments struct {
	Token string
	GUID  string
	Num   int
}

func ParseArguments

func ParseArguments(r *http.Request) (*Arguments, error)

func (*Arguments) Validate

func (args *Arguments) Validate() error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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