SoXX
3be16a9277
First implementation of the new algorithm that got proposed in issue #5 Reviewed-on: anthrove/e621-to-graph#20 Reviewed-by: Lennard Brinkhaus <lennard.brinkhaus@noreply.localhost> Reviewed-by: daskadse <daskadse@noreply.localhost> Co-authored-by: SoXX <soxx@fenpa.ws> Co-committed-by: SoXX <soxx@fenpa.ws>
20 lines
931 B
Go
20 lines
931 B
Go
package logic
|
|
|
|
import (
|
|
"context"
|
|
"git.dragse.it/anthrove/e621-sdk-go/pkg/e621/model"
|
|
)
|
|
|
|
type GraphConnection interface {
|
|
Connect(ctx context.Context, endpoint string, username string, password string) error
|
|
UploadUser(ctx context.Context, user model.User) error
|
|
UploadSource(ctx context.Context, SourceURL string) error
|
|
UploadPost(ctx context.Context, e621ID model.PostID) error
|
|
UploadTag(ctx context.Context, name string, tagType string) error
|
|
EstablishPostToTagLink(ctx context.Context, e621PostID model.PostID, e621Tag string) error
|
|
EstablishPostToSourceLink(ctx context.Context, e621PostID model.PostID, sourceURL string) error
|
|
EstablishUserToPostLink(ctx context.Context, e621PostID model.PostID, e621UserID model.UserID) error
|
|
CheckUserToPostLink(ctx context.Context, e621PostID model.PostID, e621UserID model.UserID) (bool, error)
|
|
GetUserFavoriteCount(ctx context.Context, userID model.UserID) (int64, error)
|
|
}
|