-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from CIS-Projects-in-CS-S21/external-service-in…
…terface External service interface and Start to Feed Generation Algorithm
- Loading branch information
Showing
7 changed files
with
836 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
package server | ||
|
||
import "context" | ||
import ( | ||
"context" | ||
pbcommon "github.com/kic/feed/pkg/proto/common" | ||
) | ||
|
||
type FriendServicer interface { | ||
GetFriendsForUser(context.Context, int64, string) ([]uint64, error) | ||
GetConnectionBetweenUsers(context.Context, int64, int64, string) (float32, error) | ||
} | ||
|
||
type UserServicer interface { | ||
GetUserNameForID(ctx context.Context, userID int64, authCredentials string) (string, error) | ||
} | ||
|
||
type MediaServicer interface { | ||
GetFilesForUser(ctx context.Context, userID int64, authCredentials string) ([]*pbcommon.File, error) | ||
} | ||
|
||
type HealthServicer interface { | ||
GetMentalHealthScoreForUser(ctx context.Context, userID int64, authCredentials string) (int32, error) | ||
} |
Oops, something went wrong.