config

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig()

Types

type Conf

type Conf struct {
	Debug               bool   `json:"debug"`
	LiveCheckInterval   int    `json:"live_check_interval_seconds"`
	ActiveQueueItems    int    `json:"active_queue_items"`
	RegistrationEnabled bool   `json:"registration_enabled"`
	WebhookURL          string `json:"webhook_url"`
	DBSeeded            bool   `json:"db_seeded"`
	Parameters          struct {
		VideoConvert string `json:"video_convert"`
		ChatRender   string `json:"chat_render"`
	} `json:"parameters"`
}

type Service

type Service struct {
	Store *database.Database
}

func NewService

func NewService(store *database.Database) *Service

func (*Service) GetConfig

func (s *Service) GetConfig(c echo.Context) (*Conf, error)

func (*Service) UpdateConfig

func (s *Service) UpdateConfig(c echo.Context, cDto *Conf) error

Jump to

Keyboard shortcuts

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