Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.
/ streamview Public archive

Convert UDP Streams to Configurable HTTP Presentation

License

Notifications You must be signed in to change notification settings

yetkinozturk/streamview

Repository files navigation

streamview

Convert UDP Streams to Configurable HTTP Presentation

🚧 ⚠️ Expect dragons.

Installation:

copy examples/main.go and Makefile to your project
make deps
make

Usage:

package main

import (
	"flag"
	"fmt"
	"log"
	"os"

	sv "github.com/yetkinozturk/streamview"
)

func main() {

	flag.Parse()
	log.SetFlags(0)

	if len(os.Args) != 3 {
		fmt.Println("Usage: ./streamview udpport httpport")
		return
	}

	app := sv.NewStreamView(os.Args[1],os.Args[2])
	log.Fatal(app.Start())

}

Tests/Example Usage:

cd examples

examples/main.go

tests/push100K.go

Usage via netcat

nc -u localhost 7778

TODO

  • Stats
  • Configurable UDP Package Serializations

(LITL)

Motivation

Almost every device supports UDP. Implementing complex protocols on devices is extremely expensive and difficult. With this kind of function as a service approach, external presentation layer can be used by this devices.

Use cases

  • Displaying sensor data on web or mobile devices.
  • Displaying realtime data on web pages.

About

Convert UDP Streams to Configurable HTTP Presentation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published