diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-26 16:42:17 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-26 16:42:19 -0700 |
commit | 82f8b4d838de3fb8eda5db9b23c5bc48ab281f9e (patch) | |
tree | 2b684049829c72fbdd4289535b18a19b884f377b /golang/api/handlers/editing.go | |
parent | 9b3e52e813bbd9dc9b1771ca2c63e33d93048e97 (diff) | |
download | fatcat-82f8b4d838de3fb8eda5db9b23c5bc48ab281f9e.tar.gz fatcat-82f8b4d838de3fb8eda5db9b23c5bc48ab281f9e.zip |
remove golang API server
Not following that path; this is to prevent future confusion. All code
is still in version control.
Diffstat (limited to 'golang/api/handlers/editing.go')
-rw-r--r-- | golang/api/handlers/editing.go | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/golang/api/handlers/editing.go b/golang/api/handlers/editing.go deleted file mode 100644 index 5c267e9e..00000000 --- a/golang/api/handlers/editing.go +++ /dev/null @@ -1,96 +0,0 @@ - -package handlers - -import ( - "github.com/go-pg/pg" - //"github.com/go-openapi/swag" - "github.com/go-openapi/runtime/middleware" - //log "github.com/sirupsen/logrus" - - //"git.archive.org/bnewbold/fatcat/golang/gen/models" - "git.archive.org/bnewbold/fatcat/golang/gen/restapi/operations" -) - -type Editor struct { - Id int64 - Username string - IsAdmin bool - ActiveEditgroupId int64 - ActiveEditgroup *Editgroup -} - -type Editgroup struct { - Id int64 - ExtraJson string - EditorId int64 - Editor *Editor - Description string -} - -type Changelog struct { - Id int64 - EditgroupId int64 - Editgroup *Editgroup - Timestamp string // XXX: timestamp -} - -func GetOrCreateEditgroup() Editgroup { - // XXX - eg := Editgroup{} - return eg -} - -//// -func NewGetEditorUsernameHandler(db *pg.DB) operations.GetEditorUsernameHandler { - return &getEditorUsername{db: db} -} -type getEditorUsername struct { - db *pg.DB -} -func (d *getEditorUsername) Handle(params operations.GetEditorUsernameParams) middleware.Responder { - return middleware.NotImplemented("operation .PostCreatorID has not yet been implemented") -} - -//// -func NewGetEditorUsernameChangelogHandler(db *pg.DB) operations.GetEditorUsernameChangelogHandler { - return &getEditorUsernameChangelog{db: db} -} -type getEditorUsernameChangelog struct { - db *pg.DB -} -func (d *getEditorUsernameChangelog) Handle(params operations.GetEditorUsernameChangelogParams) middleware.Responder { - return middleware.NotImplemented("operation .PostCreatorID has not yet been implemented") -} - -//// -func NewGetEditgroupIDHandler(db *pg.DB) operations.GetEditgroupIDHandler { - return &getEditgroupID{db: db} -} -type getEditgroupID struct { - db *pg.DB -} -func (d *getEditgroupID) Handle(params operations.GetEditgroupIDParams) middleware.Responder { - return middleware.NotImplemented("operation .PostCreatorID has not yet been implemented") -} - -//// -func NewPostEditgroupHandler(db *pg.DB) operations.PostEditgroupHandler { - return &postEditgroup{db: db} -} -type postEditgroup struct { - db *pg.DB -} -func (d *postEditgroup) Handle(params operations.PostEditgroupParams) middleware.Responder { - return middleware.NotImplemented("operation .PostEditgroupID has not yet been implemented") -} - -//// -func NewPostEditgroupIDAcceptHandler(db *pg.DB) operations.PostEditgroupIDAcceptHandler { - return &postEditgroupIDAccept{db: db} -} -type postEditgroupIDAccept struct { - db *pg.DB -} -func (d *postEditgroupIDAccept) Handle(params operations.PostEditgroupIDAcceptParams) middleware.Responder { - return middleware.NotImplemented("operation .PostEditgroupIDAcceptID has not yet been implemented") -} |