mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-02 01:42:26 -05:00
Grand test fixup (#138)
* start fixing up tests * fix up tests + automate with drone * fiddle with linting * messing about with drone.yml * some more fiddling * hmmm * add cache * add vendor directory * verbose * ci updates * update some little things * update sig
This commit is contained in:
parent
329a5e8144
commit
98263a7de6
2677 changed files with 1090869 additions and 219 deletions
36
vendor/github.com/superseriousbusiness/oauth2/v4/store.go
generated
vendored
Normal file
36
vendor/github.com/superseriousbusiness/oauth2/v4/store.go
generated
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
package oauth2
|
||||
|
||||
import "context"
|
||||
|
||||
type (
|
||||
// ClientStore the client information storage interface
|
||||
ClientStore interface {
|
||||
GetByID(ctx context.Context, id string) (ClientInfo, error)
|
||||
Set(ctx context.Context, id string, cli ClientInfo) error
|
||||
Delete(ctx context.Context, id string) error
|
||||
}
|
||||
|
||||
// TokenStore the token information storage interface
|
||||
TokenStore interface {
|
||||
// create and store the new token information
|
||||
Create(ctx context.Context, info TokenInfo) error
|
||||
|
||||
// delete the authorization code
|
||||
RemoveByCode(ctx context.Context, code string) error
|
||||
|
||||
// use the access token to delete the token information
|
||||
RemoveByAccess(ctx context.Context, access string) error
|
||||
|
||||
// use the refresh token to delete the token information
|
||||
RemoveByRefresh(ctx context.Context, refresh string) error
|
||||
|
||||
// use the authorization code for token information data
|
||||
GetByCode(ctx context.Context, code string) (TokenInfo, error)
|
||||
|
||||
// use the access token for token information data
|
||||
GetByAccess(ctx context.Context, access string) (TokenInfo, error)
|
||||
|
||||
// use the refresh token for token information data
|
||||
GetByRefresh(ctx context.Context, refresh string) (TokenInfo, error)
|
||||
}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue