repository

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 5 Imported by: 0

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL