Skip to content

Commit

Permalink
- Comments style changed
Browse files Browse the repository at this point in the history
- Travis CI config and README has been updated
  • Loading branch information
xuri committed Sep 15, 2018
1 parent 44752bd commit 8368d26
Show file tree
Hide file tree
Showing 34 changed files with 333 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ go:
- 1.7.x
- 1.8.x
- 1.9.x
- 1.10.x
- 1.11.x

env:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Contributions are welcome! Open a pull request to fix a bug, or open an issue to

## Credits

- Client for beanstalk use [kr/beanstalk](https://github.com/kr/beanstalk)
- Client for beanstalk use [beanstalkd/go-beanstalk](https://github.com/beanstalkd/go-beanstalk)
- TOML parser use [BurntSushi/toml](https://github.com/BurntSushi/toml)
- Web UI originally by [ptrofimov/beanstalk_console](https://github.com/ptrofimov/beanstalk_console)
- The logo is originally by [Ali Irawan](http://www.solusiteknologi.co.id/using-supervisord-beanstalkd-laravel/). This artwork is an adaptation.
Expand Down
6 changes: 3 additions & 3 deletions beanstalk/Readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Beanstalk

Go client for [beanstalkd](http://kr.github.com/beanstalkd/).
Go client for [beanstalkd](https://beanstalkd.github.io).

## Install

$ go get github.com/kr/beanstalk
$ go get github.com/beanstalkd/go-beanstalk

## Use

Expand All @@ -16,4 +16,4 @@ Produce jobs:
Consume jobs:

c, err := beanstalk.Dial("tcp", "127.0.0.1:11300")
id, body, err := c.Reserve(5 * time.Second)
id, body, err := c.Reserve(5 * time.Second)
2 changes: 1 addition & 1 deletion beanstalk/doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Package beanstalk provides a client for the beanstalk protocol.
// See http://kr.github.com/beanstalkd/ for the server.
// See https://beanstalkd.github.io/ for the server.
//
// This package is synchronized internally and safe to use from
// multiple goroutines without other coordination.
Expand Down
11 changes: 11 additions & 0 deletions cookies.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import (
Expand Down
11 changes: 11 additions & 0 deletions currentTube.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

// currentTube call currentTubeJobs by given server and tube config.
Expand Down
11 changes: 11 additions & 0 deletions currentTubeJobs.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import "bytes"
Expand Down
11 changes: 11 additions & 0 deletions currentTubeJobsActionsRow.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import (
Expand Down
11 changes: 11 additions & 0 deletions currentTubeJobsShowcase.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import (
Expand Down
11 changes: 11 additions & 0 deletions currentTubeJobsSummaryTable.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import (
Expand Down
11 changes: 11 additions & 0 deletions currentTubeSearchResults.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import (
Expand Down
11 changes: 11 additions & 0 deletions handlers.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import (
Expand Down
11 changes: 11 additions & 0 deletions lib.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import (
Expand Down
12 changes: 12 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
//go:generate statik -src=./public

// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.
//
// See https://xuri.me/aurora for more information about aurora.
package main

import (
Expand Down
22 changes: 11 additions & 11 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ enabled = true
var (
once sync.Once
urls = []string{
"/", // Static files server
"/public", // Server list
"/server?server=" + bstk, // Server status
"/", // Static files server
"/public", // Server list
"/server?server=" + bstk, // Server status
"/index?server=&action=reloader&tplMain=ajax&tplBlock=serversList", // Reload server status
"/serversRemove?action=serversRemove&removeServer=" + bstk, // Remove server
"/server?server=" + bstk + "&action=reloader&tplMain=ajax&tplBlock=allTubes", // Reload tube status
Expand All @@ -62,14 +62,14 @@ var (
"/tube?server=not_exist_server_addr&tube=aurora_test&action=moveJobsTo&destTube=aurora_test&state=buried", // Move job from buried to ready state with no exits server
"/sample?action=manageSamples", // Manage sample jobs
"/tube?server=" + bstk + "&tube=auto&action=loadSample&key=xxx&redirect=tube?action=manageSamples", // Kick job to tubes
"/sample?action=newSample", // New sample job
"/sample?action=editSample&key=xxx", // Edit sample job
"/tube?server=" + bstk + "&tube=default&state=ready&action=deleteJob&jobid=1", // Delete a job
"/tube?server=" + bstk + "&tube=default&state=ready&action=deleteJob&jobid=badID", // Delete a no exists job
"/tube?server=not_exist_server_addr&tube=default&state=ready&action=deleteJob&jobid=1", // Delete a job with no exits server
"/tube?server=" + bstk + "&tube=default&state=ready&action=deleteAll&count=1", // Delete all jobs in empty tube
"/tube?server=" + bstk + "&tube=aurora_test&state=ready&action=deleteAll&count=1", // Delete all jobs
"/tube?server=not_exist_server_addr&tube=default&state=ready&action=deleteAll&count=1", // Delete all jobs with no exits server
"/sample?action=newSample", // New sample job
"/sample?action=editSample&key=xxx", // Edit sample job
"/tube?server=" + bstk + "&tube=default&state=ready&action=deleteJob&jobid=1", // Delete a job
"/tube?server=" + bstk + "&tube=default&state=ready&action=deleteJob&jobid=badID", // Delete a no exists job
"/tube?server=not_exist_server_addr&tube=default&state=ready&action=deleteJob&jobid=1", // Delete a job with no exits server
"/tube?server=" + bstk + "&tube=default&state=ready&action=deleteAll&count=1", // Delete all jobs in empty tube
"/tube?server=" + bstk + "&tube=aurora_test&state=ready&action=deleteAll&count=1", // Delete all jobs
"/tube?server=not_exist_server_addr&tube=default&state=ready&action=deleteAll&count=1", // Delete all jobs with no exits server
}
)

Expand Down
11 changes: 11 additions & 0 deletions modalAddJob.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import (
Expand Down
11 changes: 11 additions & 0 deletions modalAddSample.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import (
Expand Down
11 changes: 11 additions & 0 deletions modalClearTubes.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import (
Expand Down
11 changes: 11 additions & 0 deletions sampleJobUtils.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import (
Expand Down
6 changes: 6 additions & 0 deletions statik/statik.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// Package statik embed a directory of static files into Go binary to be later
// served from an http.FileSystem.
package statik

import (
Expand Down
11 changes: 11 additions & 0 deletions statisticsUtils.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import (
Expand Down
11 changes: 11 additions & 0 deletions structs.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import (
Expand Down
11 changes: 11 additions & 0 deletions tplFilter.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import "bytes"
Expand Down
11 changes: 11 additions & 0 deletions tplMain.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import "bytes"
Expand Down
11 changes: 11 additions & 0 deletions tplNav.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import (
Expand Down
11 changes: 11 additions & 0 deletions tplSampleJobEdit.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Copyright 2016 - 2018 The aurora Authors. All rights reserved. Use of this
// source code is governed by a MIT license that can be found in the LICENSE
// file.
//
// The aurora is a web-based Beanstalk queue server console written in Go
// and works on macOS, Linux and Windows machines. Main idea behind using Go
// for backend development is to utilize ability of the compiler to produce
// zero-dependency binaries for multiple platforms. aurora was created as an
// attempt to build very simple and portable application to work with local or
// remote Beanstalk server.

package main

import (
Expand Down
Loading

0 comments on commit 8368d26

Please sign in to comment.