testability

package
v0.0.0-...-0de1ee4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSet = wire.NewSet(
	ProvideRoutes,
	New,
)

Functions

This section is empty.

Types

type PostMatch

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

func NewPostMatch

func NewPostMatch(matches usecase.MatchRepository) *PostMatch

func (*PostMatch) Method

func (ctrl *PostMatch) Method() string

func (*PostMatch) Path

func (ctrl *PostMatch) Path() string

func (*PostMatch) ServeHTTP

func (ctrl *PostMatch) ServeHTTP(w http.ResponseWriter, r *http.Request)

type PostMatchRequest

type PostMatchRequest struct {
	Id      string `json:"id"`
	Players []struct {
		Id   string `json:"id"`
		Team string `json:"team"`
	} `json:"players"`
}

type Route

type Route interface {
	Method() string
	Path() string
	http.Handler
}

func ProvideRoutes

func ProvideRoutes(
	matchRepo usecase.MatchRepository,
) []Route

type Testability

type Testability struct {
	chi.Router
}

func New

func New(routes ...Route) *Testability

Jump to

Keyboard shortcuts

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