clean

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute starts the server

func NewRouter

func NewRouter(data *ServiceData) *mux.Router

NewRouter creates the router for HTTP service

func StartWebServer

func StartWebServer(data *ServiceData) error

StartWebServer starts the HTTP service and listens for the requests

Types

type Cleaner

type Cleaner interface {
	Clean(ID string) error
}

Cleaner deletes information by ID

type OldIDsProvider

type OldIDsProvider interface {
	Get() ([]string, error)
}

OldIDsProvider return old ids for clesning service

type ServiceData

type ServiceData struct {
	Port int
	// contains filtered or unexported fields
}

ServiceData keeps data required for service work

Jump to

Keyboard shortcuts

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