controllers

package
v0.58.13 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveryController

type DiscoveryController struct {
	*router.Router

	Endpointers []Endpointer
}

func (*DiscoveryController) Register

func (controller *DiscoveryController) Register(router *router.Router)

Register implements router.Controller.Register

type DownloaderController

type DownloaderController struct {
	*router.Router

	ProviderHandlers []handlers.ProviderHandler
}

func (*DownloaderController) Register

func (controller *DownloaderController) Register(router *router.Router)

Register implements router.Controller.Register

type Endpointer

type Endpointer interface {
	// Endpoints returns controller endpoints.
	Endpoints() map[string]any
}

type ProviderController

type ProviderController struct {
	*router.Router

	Server               http.Server
	DownloaderController router.Controller

	AuthMiddleware   echo.MiddlewareFunc
	ProviderHandlers []handlers.ProviderHandler
}

func (*ProviderController) Endpoints

func (controller *ProviderController) Endpoints() map[string]any

Endpoints implements controllers.Endpointer.Endpoints

func (*ProviderController) Register

func (controller *ProviderController) Register(router *router.Router)

Register implements router.Controller.Register

Jump to

Keyboard shortcuts

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