bubblegame

package
v0.0.0-...-9914b64 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: AGPL-3.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler handles bubble-game/* endpoints.

func NewHandler

func NewHandler(repo repository.BubbleGameRepository, idGen id.Generator, entityPacker *entity.Packer) *Handler

NewHandler creates a new bubble-game handler. entityPacker is the Packer this Handler packs entities with (#3794).

func (*Handler) Ranking

func (h *Handler) Ranking(c *echo.Context) error

Ranking handles GET/POST /api/bubble-game/ranking. upstream ranking.ts は allowGet:true で、frontend drop-and-fusion.vue は misskeyApiGet (GET + query string) で gameMode を投げる。Echo の Bind は GET だと query を `query` タグでしか拾わないため、GET では QueryParam で読む (#1774)。

func (*Handler) Register

func (h *Handler) Register(c *echo.Context) error

Register handles POST /api/bubble-game/register.

type UserFinder

type UserFinder interface {
	FindByID(id string) (*model.User, error)
}

UserFinder resolves users for the versus endpoints.

type VersusHandler

type VersusHandler struct {
	// contains filtered or unexported fields
}

VersusHandler handles bubble-game/versus/* (#3230). mk-go 独自の endpoint (upstream にバブルゲームの対戦は無い)。

func NewVersusHandler

func NewVersusHandler(svc *bubbleversus.Service, users UserFinder, entityPacker *entity.Packer) *VersusHandler

NewVersusHandler constructs a VersusHandler. entityPacker is the Packer this VersusHandler packs entities with (#3794); 無いとメディアの URL を生のまま返すので、 構築子の必須の引数で受ける (#3823)。

func (*VersusHandler) Accept

func (h *VersusHandler) Accept(c *echo.Context) error

Accept handles POST /api/bubble-game/versus/accept.

func (*VersusHandler) Cancel

func (h *VersusHandler) Cancel(c *echo.Context) error

Cancel handles POST /api/bubble-game/versus/cancel.

func (*VersusHandler) Decline

func (h *VersusHandler) Decline(c *echo.Context) error

Decline handles POST /api/bubble-game/versus/decline.

func (*VersusHandler) History

func (h *VersusHandler) History(c *echo.Context) error

History handles bubble-game/versus/history: finished matches of userId (default: the caller), newest first. Other users' history only contains matches the caller may see.

func (*VersusHandler) Invitations

func (h *VersusHandler) Invitations(c *echo.Context) error

Invitations handles POST /api/bubble-game/versus/invitations.

func (*VersusHandler) Invite

func (h *VersusHandler) Invite(c *echo.Context) error

Invite handles POST /api/bubble-game/versus/invite.

func (*VersusHandler) Report

func (h *VersusHandler) Report(c *echo.Context) error

Report handles POST /api/bubble-game/versus/report.

func (*VersusHandler) SetPublic

func (h *VersusHandler) SetPublic(c *echo.Context) error

SetPublic handles bubble-game/versus/set-public: the caller's own consent to show the match to others.

func (*VersusHandler) SetRecords

SetRecords wires the match records and the block checker used to decide who may see them (#3232).

func (*VersusHandler) Show

func (h *VersusHandler) Show(c *echo.Context) error

Show handles POST /api/bubble-game/versus/show.

func (*VersusHandler) ShowRecord

func (h *VersusHandler) ShowRecord(c *echo.Context) error

ShowRecord handles bubble-game/versus/record: one stored match with both players' logs.

Jump to

Keyboard shortcuts

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