diff --git a/README.md b/README.md index d96bff4..ddd7c04 100755 --- a/README.md +++ b/README.md @@ -150,7 +150,7 @@ The session stores currently included are shown in the table below. Please click | [badgerstore](https://github.com/alexedwards/scs/tree/master/badgerstore) | Badger based session store | | [boltstore](https://github.com/alexedwards/scs/tree/master/boltstore) | Bolt based session store | | [buntdbstore](https://github.com/alexedwards/scs/tree/master/buntdbstore) | BuntDB based session store | -| [etcdstore](https://github.com/alexedwards/scs/tree/master/etcdstore) | ETCD based session store | +| [etcdstore](https://github.com/alexedwards/scs/tree/master/etcdstore) | Etcd based session store | | [firestore](https://github.com/alexedwards/scs/tree/master/firestore) | Google Cloud Firestore based session store | | [gormstore](https://github.com/alexedwards/scs/tree/master/gormstore) | GORM based session store | | [leveldbstore](https://github.com/alexedwards/scs/tree/master/leveldbstore) | LevelDB based session store | diff --git a/etcdstore/README.md b/etcdstore/README.md index 6c7424b..42214b0 100755 --- a/etcdstore/README.md +++ b/etcdstore/README.md @@ -1,6 +1,6 @@ # etcdstore -A [ETCD](https://github.com/etcd-io/etcd) based session store for [SCS](https://github.com/alexedwards/scs). +A [etcd](https://github.com/etcd-io/etcd) based session store for [SCS](https://github.com/alexedwards/scs). ## Setup @@ -23,7 +23,7 @@ import ( var sessionManager *scs.SessionManager func main() { - // Establish connection to ETCD. + // Establish connection to etcd. cli, err := clientv3.New(clientv3.Config{ Endpoints: []string{"host:2379"}, DialTimeout: 5 * time.Second, @@ -56,7 +56,7 @@ func getHandler(w http.ResponseWriter, r *http.Request) { ## Expired Session Cleanup -ETCD will [automatically remove](https://etcd.io/docs/v3.5/tutorials/how-to-create-lease/) expired session keys. +Etcd will [automatically remove](https://etcd.io/docs/v3.5/tutorials/how-to-create-lease/) expired session keys. ## Key Collisions diff --git a/etcdstore/etcdstore.go b/etcdstore/etcdstore.go index ca08a87..1bb5084 100755 --- a/etcdstore/etcdstore.go +++ b/etcdstore/etcdstore.go @@ -14,13 +14,13 @@ type EtcdStore struct { } // New returns a new EtcdStore instance. -// The client parameter should be a pointer to a ETCD client instance. +// The client parameter should be a pointer to a etcd client instance. func New(client *clientv3.Client) *EtcdStore { return NewWithPrefix(client, "scs:session:") } // NewWithPrefix returns a new EtcdStore instance. The client parameter should be a pointer -// to a ETCD client instance. The prefix parameter controls the ETCD key +// to a etcd client instance. The prefix parameter controls the etcd key // prefix, which can be used to avoid naming clashes if necessary. func NewWithPrefix(client *clientv3.Client, prefix string) *EtcdStore { return &EtcdStore{