interceptor

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MarsClient

type MarsClient interface {
	WaitingFor(ctx context.Context, req mars.WaitingForRequest) (mars.WaitingForResponse, error)
}

type Notifier

type Notifier interface {
	NotifyUser(ctx context.Context, userId string) error
}

type Service

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

func NewService

func NewService(origin http.Handler, storage Storage, mars MarsClient, notifier Notifier) *Service

func (*Service) PlayerInputHandler

func (s *Service) PlayerInputHandler(w http.ResponseWriter, r *http.Request)

type Storage

type Storage interface {
	GetGameByPlayerId(ctx context.Context, playerId string) (*storage.Game, error)
}

Jump to

Keyboard shortcuts

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