Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrGameSessionNotFound = errors.New("game session not found")
)
View Source
var (
ErrJankenSessionNotFound = errors.New("janken session not found")
)
View Source
var (
ErrUserNotFound = errors.New("user not found")
)
Functions ¶
This section is empty.
Types ¶
type EchoRepository ¶
type EchoRepository interface {
Save(ctx context.Context, tx transaction.Transaction, echos ...model.Echo) error
}
type GameSessionRepository ¶
type GameSessionRepository interface { Get(ctx context.Context, tx transaction.Transaction, userID uuid.UUID, gameSessionID uuid.UUID) (model.GameSession, error) Save(ctx context.Context, tx transaction.Transaction, sessions ...model.GameSession) error }
type JankenSessionRepository ¶ added in v0.2.0
type JankenSessionRepository interface { Get(ctx context.Context, tx transaction.Transaction, gameSessionID uuid.UUID) (model.JankenSession, error) Save(ctx context.Context, tx transaction.Transaction, session model.JankenSession) error }
type UserRepository ¶ added in v0.2.0
type UserRepository interface { Get(ctx context.Context, tx transaction.Transaction, userID uuid.UUID) (model.User, error) Save(ctx context.Context, tx transaction.Transaction, user model.User) error }
Click to show internal directories.
Click to hide internal directories.