From 7d0573448a670845ea834497d1dfc8844dc40e1e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 17 Jun 2018 13:20:58 -0700 Subject: [PATCH] Updated Customize Filer Store (markdown) --- Customize-Filer-Store.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Customize-Filer-Store.md b/Customize-Filer-Store.md index d710f5a..7f58947 100644 --- a/Customize-Filer-Store.md +++ b/Customize-Filer-Store.md @@ -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() {