http_server

package
v0.0.0-...-dc85c0f Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryPlayerStore

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

func NewInMemoryPlayerStore

func NewInMemoryPlayerStore() *InMemoryPlayerStore

func (*InMemoryPlayerStore) GetScore

func (i *InMemoryPlayerStore) GetScore(name string) int

func (*InMemoryPlayerStore) IncrementScore

func (i *InMemoryPlayerStore) IncrementScore(name string)

type PlayerServer

type PlayerServer struct {
	Store PlayerStore
}

func (*PlayerServer) ServeHTTP

func (p *PlayerServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

type PlayerStore

type PlayerStore interface {
	GetScore(name string) int
	IncrementScore(name string)
}

Jump to

Keyboard shortcuts

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