Skip to content

Commit

Permalink
Rename module path
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jul 2, 2020
1 parent a5ca165 commit 81e04e6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# CleverGo Authentication Middleware
[![Build Status](https://img.shields.io/travis/clevergo/authmidware?style=for-the-badge)](https://travis-ci.org/clevergo/authmidware)
[![Coverage Status](https://img.shields.io/coveralls/github/clevergo/authmidware?style=for-the-badge)](https://coveralls.io/github/clevergo/authmidware?branch=master)
[![Go.Dev reference](https://img.shields.io/badge/go.dev-reference-blue?logo=go&logoColor=white&style=for-the-badge)](https://pkg.go.dev/clevergo.tech/authmidware?tab=doc)
[![Go Report Card](https://goreportcard.com/badge/github.com/clevergo/authmidware?style=for-the-badge)](https://goreportcard.com/report/github.com/clevergo/authmidware)
[![Release](https://img.shields.io/github/release/clevergo/authmidware.svg?style=for-the-badge)](https://github.com/clevergo/authmidware/releases)
[![Build Status](https://img.shields.io/travis/clevergo/authmiddleware?style=for-the-badge)](https://travis-ci.org/clevergo/authmiddleware)
[![Coverage Status](https://img.shields.io/coveralls/github/clevergo/authmiddleware?style=for-the-badge)](https://coveralls.io/github/clevergo/authmiddleware?branch=master)
[![Go.Dev reference](https://img.shields.io/badge/go.dev-reference-blue?logo=go&logoColor=white&style=for-the-badge)](https://pkg.go.dev/clevergo.tech/authmiddleware?tab=doc)
[![Go Report Card](https://goreportcard.com/badge/github.com/clevergo/authmiddleware?style=for-the-badge)](https://goreportcard.com/report/github.com/clevergo/authmiddleware)
[![Release](https://img.shields.io/github/release/clevergo/authmiddleware.svg?style=for-the-badge)](https://github.com/clevergo/authmiddleware/releases)

## Usage

```go
import (
"clevergo.tech/auth"
"clevergo.tech/auth/authenticators"
"clevergo.tech/authmidware"
"clevergo.tech/authmiddleware"
"clevergo.tech/clevergo"
)
```
Expand All @@ -20,7 +20,7 @@ import (
var store auth.IdentityStore
authenticator := authenticators.NewBasicAuth(store)
app := clevergo.New()
app.Use(authmidware.New(authenticator))
app.Use(authmiddleware.New(authenticator))
```

Checkout [example](https://github.com/clevergo/examples/tree/master/auth) for details.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module clevergo.tech/authmidware
module clevergo.tech/authmiddleware

go 1.13

Expand Down
2 changes: 1 addition & 1 deletion middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file.

package authmidware
package authmiddleware

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file.

package authmidware
package authmiddleware

import (
"context"
Expand Down

0 comments on commit 81e04e6

Please sign in to comment.