Rename package to bloat
authorr <r@freesoftwareextremist.com>
Wed, 1 Jan 2020 15:58:27 +0000 (15:58 +0000)
committerr <r@freesoftwareextremist.com>
Wed, 1 Jan 2020 15:58:27 +0000 (15:58 +0000)
16 files changed:
.gitignore
Makefile
README
config/config.go
go.mod
main.go
model/notification.go [deleted file]
model/status.go [deleted file]
renderer/model.go
repository/appRepository.go
repository/sessionRepository.go
service/auth.go
service/logging.go
service/service.go
service/transport.go
templates/about.tmpl

index 9608799e0c9edcf0bb5a755d6e7319e3305e06e7..516f77b9dfa5f2979175e48ca1df5c321a87a3b6 100644 (file)
@@ -1,2 +1,2 @@
-web
+bloat
 database
index afe663e2c14a4846b8d77ca288b8c591f9721d8e..8dcbd469a638a1917796a7d983425889ced2da08 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,12 +2,12 @@
 
 GO=go
 
-all: web
+all: bloat
 
 PHONY:
 
-web: main.go PHONY
-       $(GO) build $(GOFLAGS) -o web main.go
+bloat: main.go PHONY
+       $(GO) build $(GOFLAGS) -o bloat main.go
 
-run: web
-       ./web
+run: bloat
+       ./bloat
diff --git a/README b/README
index d0e11dd676b8d0b66ce050ad4e6584472cedc220..57bd0e0931ceb5b2da227ece6b659bb2443279bf 100644 (file)
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-Web - A web client for Mastodon Network[1]
+bloat - A web client for Mastodon Network[1]
 
 Features:
 
@@ -28,7 +28,7 @@ Edit the provided config file. See the default.conf file for more details.
 $ ed default.conf
 
 Run the binary
-$ ./web
+$ ./bloat
 
 You can now access the frontend at http://localhost:8080, which is the default
 listen address. You can also setup a reverse HTTP proxy to serve the frontend over
index c463c9115cfc5926c0b79a8454f9bcd76c1beb87..ef0726030c4eab3b1788f129b7c7b5823cfc00f4 100644 (file)
@@ -6,7 +6,8 @@ import (
        "io"
        "os"
        "strings"
-       "web/model"
+
+       "bloat/model"
 )
 
 type config struct {
diff --git a/go.mod b/go.mod
index 0bebfe16bf45d195beb617fa2e9e8fd031b5e3ad..268e515b46ee1fcd1b1f73a68fa07dc81656790f 100644 (file)
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module web
+module bloat
 
 go 1.13
 
diff --git a/main.go b/main.go
index 423d06afb602c428089cbe75def79cdbae0d6383..4f5851d32a60f4b880074916ca0171db50977e7b 100644 (file)
--- a/main.go
+++ b/main.go
@@ -9,12 +9,12 @@ import (
        "strings"
        "time"
 
-       "web/config"
-       "web/kv"
-       "web/renderer"
-       "web/repository"
-       "web/service"
-       "web/util"
+       "bloat/config"
+       "bloat/kv"
+       "bloat/renderer"
+       "bloat/repository"
+       "bloat/service"
+       "bloat/util"
 )
 
 var (
diff --git a/model/notification.go b/model/notification.go
deleted file mode 100644 (file)
index 8b53790..0000000
+++ /dev/null
@@ -1 +0,0 @@
-package model
diff --git a/model/status.go b/model/status.go
deleted file mode 100644 (file)
index 8b53790..0000000
+++ /dev/null
@@ -1 +0,0 @@
-package model
index 3d344b4fb24fe74e31e7b7c0a4e5e6752e940c30..f086e1d05e051c59bce824ba7d666c21014db417 100644 (file)
@@ -1,8 +1,8 @@
 package renderer
 
 import (
+       "bloat/model"
        "mastodon"
-       "web/model"
 )
 
 type HeaderData struct {
@@ -92,14 +92,14 @@ type RetweetedByData struct {
 
 type FollowingData struct {
        *CommonData
-       Users []*mastodon.Account
+       Users    []*mastodon.Account
        HasNext  bool
        NextLink string
 }
 
 type FollowersData struct {
        *CommonData
-       Users []*mastodon.Account
+       Users    []*mastodon.Account
        HasNext  bool
        NextLink string
 }
index cfa79500113b9d1eae0ff5db8b1eb8fb4796677f..9e57fb7e1b89d362b07984775212f3e8b4fbfabd 100644 (file)
@@ -2,8 +2,9 @@ package repository
 
 import (
        "encoding/json"
-       "web/kv"
-       "web/model"
+
+       "bloat/kv"
+       "bloat/model"
 )
 
 type appRepository struct {
index d5f399abd2a348894248cb9add5cd470685a7f69..cb19f689cdcde2ffdf21e5ca131b6126790d0f53 100644 (file)
@@ -2,8 +2,9 @@ package repository
 
 import (
        "encoding/json"
-       "web/kv"
-       "web/model"
+
+       "bloat/kv"
+       "bloat/model"
 )
 
 type sessionRepository struct {
index efc8dd3ca7fe7e3f42e6fd814ff3eccdeadf7598..2aa71d93403d0ede277b536673d802bf931b6985 100644 (file)
@@ -4,9 +4,10 @@ import (
        "context"
        "errors"
        "io"
-       "mastodon"
        "mime/multipart"
-       "web/model"
+
+       "bloat/model"
+       "mastodon"
 )
 
 var (
index d1685ac9cfd72054bf84bd4353166ef8ff01c603..7d53f8901146880a13299adba212e7628585b758 100644 (file)
@@ -6,7 +6,8 @@ import (
        "log"
        "mime/multipart"
        "time"
-       "web/model"
+
+       "bloat/model"
 )
 
 type loggingService struct {
index 27e0d4a6fe5690d3feba9345e96b77b72d6c0d79..f8a4aed0fa974fdd3e6dcb407812c5da5e77a9d1 100644 (file)
@@ -12,10 +12,10 @@ import (
        "net/url"
        "strings"
 
+       "bloat/model"
+       "bloat/renderer"
+       "bloat/util"
        "mastodon"
-       "web/model"
-       "web/renderer"
-       "web/util"
 )
 
 var (
@@ -93,7 +93,7 @@ func (svc *service) GetAuthUrl(ctx context.Context, instance string) (
        session := model.Session{
                ID:             sessionID,
                InstanceDomain: instance,
-               Settings: *model.NewSettings(),
+               Settings:       *model.NewSettings(),
        }
        err = svc.sessionRepo.Add(session)
        if err != nil {
index 80753776fe164250a93cee88f3ba868f13d4308a..dc7e4793ef203475ac4f2a9eab2de382355257a3 100644 (file)
@@ -7,7 +7,8 @@ import (
        "path"
        "strconv"
        "time"
-       "web/model"
+
+       "bloat/model"
 
        "github.com/gorilla/mux"
 )
index 60385010d5d94c5024abca0709edf34484a67bd3..60bb5f60b4c149494fdcfbde03900652b6f05370 100644 (file)
@@ -10,7 +10,7 @@
                The source code is released under 
                <a href="https://creativecommons.org/share-your-work/public-domain/cc0" target="_blank">CC0</a> 
                and is available on 
-               <a href="https://git.freesoftwareextremist.com/web" target="_blank">git.freesoftwareextremist.com/web</a>.
+               <a href="https://git.freesoftwareextremist.com/bloat" target="_blank">git.freesoftwareextremist.com/bloat</a>.
        </P>
 </div>