web

package
v0.0.0-...-c347dc3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"web",
	fx.Provide(
		http.AsRouteGroup(NewWeb),
	),
)

Functions

This section is empty.

Types

type NewWebQueueParams

type NewWebQueueParams struct {
	fx.In
	Repo       *repositories.GuildRepository
	Queue      *queues.SoundsQueue
	Store      *soundstore.SoundStore
	Log        *zap.Logger
	Prometheus *prometheus.Prometheus
}

type PostPlaySoundBody

type PostPlaySoundBody struct {
	Guild string `json:"guild" validate:"required"`
	Sound string `json:"sound" validate:"required"`
}

type Web

type Web struct {
	Repo  *repositories.GuildRepository
	Queue *queues.SoundsQueue
	Store *soundstore.SoundStore
	Log   *zap.Logger
}

func NewWeb

func NewWeb(p NewWebQueueParams) (*Web, error)

func (*Web) ApiGroup

func (w *Web) ApiGroup() string

func (*Web) Handler

func (w *Web) Handler(e *echo.Group)

func (*Web) Version

func (w *Web) Version() string

Jump to

Keyboard shortcuts

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