Properties

Last built 2 years ago using go version go1.5 linux/amd64 and 56 seconds of time

Downloads
Filename
File Size
 
goraf_master_darwin-386.zip
2.3MiB
goraf_master_darwin-amd64.zip
2.4MiB
goraf_master_linux-386.zip
2.3MiB
goraf_master_linux-amd64.zip
2.4MiB
goraf_master_linux-arm.zip
2.2MiB
goraf_master_windows-386.zip
2.3MiB
goraf_master_windows-amd64.zip
2.4MiB
Project-Readme for this version

A program editing server for Radio AF written in Go. goraf ui

usage

assuming you have Go set up

  • go get github.com/hbshai/goraf
  • cd $GOPATH/src/github.com/hbshai/goraf
  • go build
  • ./goraf
  • browse to localhost:8000

alternatively, you can get up-to-date builds from gobuilder.

we also tag and build release versions, found here.

specifics

This is a http server that serves a html site and allows users to edit a json file.

Only one user should be able to edit the json file at any given time. This is accomplished with 1 session bound to an IP address + a session timeout.

The server will try to backup the program file before writing changes to it, but if it, for some reason, fails the program will write changes and skip the backup.

Pressing delete will only remove the program for you. Click the save button to update the server. This is for some additional safety, so that in the event of incorrect deletion you only need to refresh your browser.

improvements

  • validate input before submitting to server

thanks