services

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogError

func LogError(err error, context ...map[string]interface{}) bool

LogError returns true on error

Types

type APIService

type APIService struct {
	HTTPServer    *http.Server
	HTTPTLSServer *http.Server
	// contains filtered or unexported fields
}

APIService the service handling the API

func NewAPIService

func NewAPIService(config *models.Config, db *gorm.DB) *APIService

NewAPIService create new API service

func (*APIService) Start

func (service *APIService) Start()

Start the API service

type CleanupService

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

CleanupService cleanupservice cleansup stuff in background from DB

func NewClienupService

func NewClienupService(config *models.Config, db *gorm.DB) *CleanupService

NewClienupService create a new cleanupservice

func (*CleanupService) Start

func (cs *CleanupService) Start()

Start starts the service

Jump to

Keyboard shortcuts

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