remote

package
v0.0.0-...-71c611c Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: AGPL-3.0 Imports: 25 Imported by: 1

Documentation

Overview

Package remote is the used for the /remote routes. They are intended for requesting data that is not in the Cozy itself, but in a remote place.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(router *echo.Group)

Routes set the routing for the remote service

Types

type HTTPHandler

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

HTTPHandler owns the remote routes that need stack services injected from the main process (for example the RabbitMQ broker for the Nextcloud migration trigger). Stateless routes are wired through the package-level Routes function.

func NewHTTPHandler

func NewHTTPHandler(rmq rabbitmq.Service) *HTTPHandler

NewHTTPHandler builds a handler with the given service dependencies.

func (*HTTPHandler) Register

func (h *HTTPHandler) Register(router *echo.Group)

Register wires every route the remote package serves, stateless and stateful, onto the given router. The caller should no longer call Routes separately once it holds an HTTPHandler.

Jump to

Keyboard shortcuts

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