Maxim Lebedev
1e7249b18e
* Added repository interface * Added GitHub provider * Added Mastodon provider
14 lines
216 B
Go
14 lines
216 B
Go
package profile
|
|
|
|
import (
|
|
"context"
|
|
|
|
"golang.org/x/oauth2"
|
|
|
|
"source.toby3d.me/website/oauth/internal/domain"
|
|
)
|
|
|
|
type Repository interface {
|
|
Get(ctx context.Context, token oauth2.Token) (*domain.Profile, error)
|
|
}
|