mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-11-24 16:53:14 +08:00
Updated Customize Filer Store (markdown)
@@ -3,8 +3,8 @@ It is fairly easy if you need to store filer metadata with other data store.
|
||||
Let's use "yourstore" as the chosen name.
|
||||
|
||||
Here are the steps:
|
||||
1. add a package under github.com/chrislusf/seaweedfs/weed/filer2/yourstore
|
||||
2. implement the filer2.FilerStore interface
|
||||
1. Add a package under github.com/chrislusf/seaweedfs/weed/filer2/yourstore
|
||||
2. Implement the filer2.FilerStore interface
|
||||
```
|
||||
package filer2
|
||||
|
||||
@@ -13,6 +13,7 @@ import (
|
||||
)
|
||||
|
||||
type FilerStore interface {
|
||||
// GetName gets the name to locate the configuration in filer.toml file
|
||||
GetName() string
|
||||
// Initialize initializes the file store
|
||||
Initialize(configuration Configuration) error
|
||||
@@ -24,6 +25,7 @@ type FilerStore interface {
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
3. Remember to add yourstore to the list of supported stores
|
||||
```
|
||||
func init() {
|
||||
|
||||
Reference in New Issue
Block a user