aboutsummaryrefslogtreecommitdiffstats
path: root/golang/api/handlers/entities.go
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-10 19:57:16 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-10 19:57:16 -0700
commit63dc69bbcdbee264383b919f9a8a3b1a83358be7 (patch)
tree1b74955ed3b9938f2e7d2b690ab59c9f33c91c99 /golang/api/handlers/entities.go
parent71c6b0a4418511a6c0046742512066fc27e51b21 (diff)
downloadfatcat-63dc69bbcdbee264383b919f9a8a3b1a83358be7.tar.gz
fatcat-63dc69bbcdbee264383b919f9a8a3b1a83358be7.zip
a bunch more skeleton
Diffstat (limited to 'golang/api/handlers/entities.go')
-rw-r--r--golang/api/handlers/entities.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/golang/api/handlers/entities.go b/golang/api/handlers/entities.go
index beed633a..a2fb7db8 100644
--- a/golang/api/handlers/entities.go
+++ b/golang/api/handlers/entities.go
@@ -75,6 +75,19 @@ func (d *getCreatorID) Handle(params operations.GetCreatorIDParams) middleware.R
return operations.NewGetCreatorIDOK().WithPayload(api_entity)
}
+func NewGetCreatorLookupHandler(db *pg.DB) operations.GetCreatorLookupHandler {
+ return &getCreatorLookup{db: db}
+}
+
+type getCreatorLookup struct {
+ db *pg.DB
+}
+
+func (d *getCreatorLookup) Handle(params operations.GetCreatorLookupParams) middleware.Responder {
+ // get-or-create editgroup based on current editor (session)
+ // insert new rev, ident, and edit
+ return middleware.NotImplemented("operation .GetCreatorLookup has not yet been implemented")
+}
func NewPostCreatorHandler(db *pg.DB) operations.PostCreatorHandler {
return &postCreator{db: db}