maintenance

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package maintenance contains the service for enabling/disabling maintenance mode

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnableMaintenanceModeInput

type EnableMaintenanceModeInput struct {
	Message string
}

EnableMaintenanceModeInput is the input for enabling maintenance mode

type Service

type Service interface {
	GetMaintenanceMode(ctx context.Context) (*models.MaintenanceMode, error)
	EnableMaintenanceMode(ctx context.Context, input *EnableMaintenanceModeInput) (*models.MaintenanceMode, error)
	DisableMaintenanceMode(ctx context.Context) error
}

Service is the interface for the maintenance service

func NewService

func NewService(logger logger.Logger, dbClient *db.Client) Service

NewService creates a new maintenance service

Jump to

Keyboard shortcuts

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