Skip to content

Commit 3a4a9e8

Browse files
authored
Merge pull request #2 from vgarvardt/patch/linting
Fixed linting issues
2 parents b7b6948 + 70d2f79 commit 3a4a9e8

File tree

5 files changed

+23
-3
lines changed

5 files changed

+23
-3
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# PostgreSQL Storage for [OAuth 2.0](https://github.com/go-oauth2/oauth2)
22

3+
[![Build][Build-Status-Image]][Build-Status-Url] [![Codecov][codecov-image]][codecov-url] [![ReportCard][reportcard-image]][reportcard-url] [![GoDoc][godoc-image]][godoc-url] [![License][license-image]][license-url]
4+
35
## Install
46

57
```bash
@@ -58,3 +60,20 @@ Now you can run tests using the running PostgreSQL instance using `PG_URI` envir
5860
```bash
5961
PG_URI=postgres://oauth2:oauth2@localhost:5432/oauth2?sslmode=disable go test -cover ./...
6062
```
63+
64+
## MIT License
65+
66+
```
67+
Copyright (c) 2019 Vladimir Garvardt
68+
```
69+
70+
[Build-Status-Url]: https://travis-ci.org/vgarvardt/go-oauth2-pg
71+
[Build-Status-Image]: https://travis-ci.org/vgarvardt/go-oauth2-pg.svg?branch=master
72+
[codecov-url]: https://codecov.io/gh/vgarvardt/go-oauth2-pg
73+
[codecov-image]: https://codecov.io/gh/vgarvardt/go-oauth2-pg/branch/master/graph/badge.svg
74+
[reportcard-url]: https://goreportcard.com/report/github.com/vgarvardt/go-oauth2-pg
75+
[reportcard-image]: https://goreportcard.com/badge/github.com/vgarvardt/go-oauth2-pg
76+
[godoc-url]: https://godoc.org/github.com/vgarvardt/go-oauth2-pg
77+
[godoc-image]: https://godoc.org/github.com/vgarvardt/go-oauth2-pg?status.svg
78+
[license-url]: http://opensource.org/licenses/MIT
79+
[license-image]: https://img.shields.io/npm/l/express.svg

adapter/pgx/adapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func NewConnPoolAdapter(conn *pgx.ConnPool) *ConnPoolAdapter {
1616
return &ConnPoolAdapter{conn}
1717
}
1818

19-
// ConnPoolAdapter is the adapter type for PGx connection connection type
19+
// ConnAdapter is the adapter type for PGx connection connection type
2020
type ConnAdapter struct {
2121
conn *pgx.Conn
2222
}

adapter/sql/adapter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func NewSQL(conn *sql.DB) *Adapter {
1717
return &Adapter{sqlx.NewDb(conn, "")}
1818
}
1919

20-
// NewSQL instantiates sqlx.DB connection adapter
20+
// NewSQLx instantiates sqlx.DB connection adapter
2121
func NewSQLx(conn *sqlx.DB) *Adapter {
2222
return &Adapter{conn}
2323
}

options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package pg
22

33
import "time"
44

5-
// Option is teh configuration options type for store
5+
// Option is the configuration options type for store
66
type Option func(s *Store)
77

88
// WithTableName returns option that sets store table name

pg.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"gopkg.in/oauth2.v3/models"
1313
)
1414

15+
// ErrNoRows is the driver-agnostic error returned when no record is found
1516
var ErrNoRows = errors.New("sql: no rows in result set")
1617

1718
// Adapter represents DB access layer interface for different PostgreSQL drivers

0 commit comments

Comments
 (0)