handler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 14 Imported by: 0

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
}

func NewHandler

func NewHandler(repository repository, provider provider.Provider) *Handler

func (*Handler) HandleDynamicForward

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

func (*Handler) HandleGetPlayer added in v0.2.0

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

func (*Handler) HandleStaticForward

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

type PlayerDTO added in v0.2.0

type PlayerDTO struct {
	PID        int     `json:"pid"`
	Nick       string  `json:"nick"`
	Provider   string  `json:"provider"`
	ProfileURL *string `json:"profileUrl"`
}

func EncodePlayer added in v0.2.0

func EncodePlayer(p player.Player) PlayerDTO

type UpstreamResponse

type UpstreamResponse struct {
	StatusCode int
	Header     map[string][]string
	Body       []byte
}

Jump to

Keyboard shortcuts

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