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"
|
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 {
|
type TwitterAPIClient struct {
|
||||||
mock.Mock
|
mock.Mock
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package httpserver
|
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 --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 (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
@ -22,8 +23,8 @@ const (
|
||||||
sessionName = "elon_session"
|
sessionName = "elon_session"
|
||||||
sessionKeyState = "state"
|
sessionKeyState = "state"
|
||||||
sessionKeyPkceVerifier = "pkce_verifier"
|
sessionKeyPkceVerifier = "pkce_verifier"
|
||||||
stateLen = 64
|
stateLen = 256
|
||||||
pkceVerifierLen = 64
|
pkceVerifierLen = 256
|
||||||
)
|
)
|
||||||
|
|
||||||
type TwitterAPIClient interface {
|
type TwitterAPIClient interface {
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
package httpserver
|
|
|
@ -1 +0,0 @@
|
||||||
package httpserver
|
|
|
@ -1,7 +1,5 @@
|
||||||
package twitter
|
package twitter
|
||||||
|
|
||||||
//go:generate mockery --recursive --name APIClient --structname TwitterAPIClient --filename TwitterAPIClient.go --output ../generated/mocks
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
Reference in New Issue