mirror of
https://github.com/restic/rest-server.git
synced 2026-04-11 04:31:29 -07:00
refactoring
This commit is contained in:
17
context.go
Normal file
17
context.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import ()
|
||||
|
||||
// A Context specifies the root directory where all repositories are stored
|
||||
type Context struct {
|
||||
path string
|
||||
}
|
||||
|
||||
func NewContext(path string) Context {
|
||||
return Context{path}
|
||||
}
|
||||
|
||||
// Creates the file structure of the Context
|
||||
func (c *Context) Init() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user