-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add testing, make cosgo own more methods
- Loading branch information
Showing
11 changed files
with
790 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
package main | ||
|
||
import "time" | ||
import ( | ||
"time" | ||
|
||
"github.com/gorilla/mux" | ||
) | ||
|
||
// Cosgo struct holds the changing URLKey and hit counter variables | ||
type Cosgo struct { | ||
boot time.Time | ||
URLKey string // This changes every X minutes | ||
Refresh time.Duration | ||
Name string | ||
Visitors int // hit counter | ||
publicKey []byte // gpg key bytes (ascii armored) | ||
antiCSRFkey []byte // needed for POST method | ||
Destination string // [email protected] | ||
staticDir, templatesDir string | ||
r *mux.Router | ||
routed bool | ||
Port, Bind string | ||
} |
Oops, something went wrong.