-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some more serialization types and fleshed out the idea some more
- Loading branch information
1 parent
9ded344
commit 6808121
Showing
6 changed files
with
115 additions
and
10 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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package archive | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/NeuralNexusDev/neuralnexus-api/modules/database" | ||
) | ||
|
||
// ApplyRoutes - Apply routes to the router | ||
func ApplyRoutes(router *http.ServeMux) *http.ServeMux { | ||
bucket := NewS3Store(database.GetS3()) | ||
bucket.MakeBucket() | ||
service := NewService(bucket) | ||
return router | ||
} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package archive | ||
|
||
// Service interface for the archive service | ||
type Service interface{} | ||
|
||
// service implementation of the archive service | ||
type service struct { | ||
store S3Store | ||
} | ||
|
||
// NewService creates a new archive service | ||
func NewService(store S3Store) Service { | ||
return &service{store} | ||
} | ||
|
||
// PluginMod interface for a plugin/mod that can be converted to an MCMod | ||
type PluginMod interface { | ||
ToMCMod(s Service) *MCMod | ||
} |
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