Clean up
This commit is contained in:
parent
9767ad2331
commit
266af06be3
|
@ -10,7 +10,7 @@ import (
|
|||
twitter "git.netflux.io/rob/elon-eats-my-tweets/twitter"
|
||||
)
|
||||
|
||||
// TwitterAPIClient is an autogenerated mock type for the APIClient type
|
||||
// TwitterAPIClient is an autogenerated mock type for the TwitterAPIClient type
|
||||
type TwitterAPIClient struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package httpserver
|
||||
|
||||
//go:generate mockery --recursive --srcpkg github.com/gorilla/sessions --name Store --structname SessionStore --filename SessionStore.go --output ../generated/mocks
|
||||
//go:generate mockery --recursive --name TwitterAPIClient --filename TwitterAPIClient.go --output ../generated/mocks
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
@ -22,8 +23,8 @@ const (
|
|||
sessionName = "elon_session"
|
||||
sessionKeyState = "state"
|
||||
sessionKeyPkceVerifier = "pkce_verifier"
|
||||
stateLen = 64
|
||||
pkceVerifierLen = 64
|
||||
stateLen = 256
|
||||
pkceVerifierLen = 256
|
||||
)
|
||||
|
||||
type TwitterAPIClient interface {
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
package httpserver
|
|
@ -1 +0,0 @@
|
|||
package httpserver
|
|
@ -1,7 +1,5 @@
|
|||
package twitter
|
||||
|
||||
//go:generate mockery --recursive --name APIClient --structname TwitterAPIClient --filename TwitterAPIClient.go --output ../generated/mocks
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
|
Reference in New Issue