Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMasterDataNotFound = errors.New("master data not found") ErrActiveMasterDataNotFound = errors.New("active master data not found") )
View Source
var (
ErrRoomNotFound = errors.New("room not found")
)
View Source
var (
ErrUserAuthenticationNotFound = errors.New("user authentication not found")
)
View Source
var (
ErrUserNotFound = errors.New("user not found")
)
Functions ¶
This section is empty.
Types ¶
type AuthenticationRepository ¶
type AuthenticationRepository interface { Get(ctx context.Context, tx transaction.Transaction, userID uuid.UUID) (model.UserAuthentication, error) GetByBaasUserID(ctx context.Context, tx transaction.Transaction, baasUserID string) (model.UserAuthentication, error) Save(ctx context.Context, tx transaction.Transaction, auth model.UserAuthentication) error }
type EchoRepository ¶
type EchoRepository interface {
Save(ctx context.Context, tx transaction.Transaction, echos ...model.Echo) error
}
type GlobalKVSRepository ¶
type GlobalKVSRepository interface { Get(ctx context.Context, tx transaction.Transaction, criteria model.KVSCriteria) (model.GlobalKVSBucket, error) Save(ctx context.Context, tx transaction.Transaction, bucket model.GlobalKVSBucket) error }
type LeaderBoardRepository ¶ added in v0.2.0
type LeaderBoardRepository interface { Get(ctx context.Context, tx transaction.Transaction, id string) (model.LeaderBoard, error) Save(ctx context.Context, tx transaction.Transaction, leaderBoard model.LeaderBoard) error }
type MasterDataRepository ¶ added in v0.3.0
type MasterDataRepository interface { Get(ctx context.Context, tx transaction.Transaction, revision int) (model.MasterData, error) GetActive(ctx context.Context, tx transaction.Transaction) (model.MasterData, error) GetRevisions(ctx context.Context, tx transaction.Transaction) ([]int, error) Save(ctx context.Context, tx transaction.Transaction, data ...model.MasterData) error }
type PrivateKVSRepository ¶ added in v0.2.0
type PrivateKVSRepository interface { Get(ctx context.Context, tx transaction.Transaction, userID uuid.UUID, criteria model.KVSCriteria) (model.PrivateKVSBucket, error) Save(ctx context.Context, tx transaction.Transaction, bucket model.PrivateKVSBucket) error }
type RoomRepository ¶ added in v0.3.0
type RoomRepository interface { Get(ctx context.Context, tx transaction.Transaction, roomID uuid.UUID) (model.Room, error) Save(ctx context.Context, tx transaction.Transaction, room model.Room) error }
type UserProfileRepository ¶ added in v0.3.0
type UserProfileRepository interface { Get(ctx context.Context, tx transaction.Transaction, userID uuid.UUID) (model.UserProfile, error) GetByUserIDs(ctx context.Context, tx transaction.Transaction, userIDs []uuid.UUID) ([]model.UserProfile, error) Save(ctx context.Context, tx transaction.Transaction, profile model.UserProfile) error }
type UserRepository ¶
type UserRepository interface { Get(ctx context.Context, tx transaction.Transaction, userID uuid.UUID) (model.User, error) GetByUserIDs(ctx context.Context, tx transaction.Transaction, userIDs []uuid.UUID) ([]model.User, error) Save(ctx context.Context, tx transaction.Transaction, user model.User) error }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.