service

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: GPL-3.0, GPL-3.0-or-later Imports: 13 Imported by: 0

Documentation

Overview

Package service is a package that contains varios file serving services

Package service is a package that contains varios file serving services

Package service is a package that contains varios file serving services

Package service is a package that contains varios file serving services

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPSubRepoService

type HTTPSubRepoService struct {
	// Config contains the reposervice global configuration
	Config config.Configuration
	// Log contains logger formatted
	Log *logrus.Logger
}

HTTPSubRepoService is a concrete implementation of SubRepoServiceInterface

func (*HTTPSubRepoService) Init

func (hs *HTTPSubRepoService) Init(wg *sync.WaitGroup)

Init start the service

type RepoService

type RepoService struct {
	// Config contains the reposervice global configuration
	Config config.Configuration
	// SubServices contains all subservices
	SubServices []SubRepoServiceInterface
}

RepoService is a concrete implementation of RepoServiceInterface

func (*RepoService) Init

func (rs *RepoService) Init(wg *sync.WaitGroup)

Init initialize all services

type RepoServiceInterface

type RepoServiceInterface interface {
	// Init initialize the service
	Init(wg *sync.WaitGroup)
}

RepoServiceInterface is a interface that wrap functions for starting a service

type SFTPRepoSubService

type SFTPRepoSubService struct {
	// Config contains the reposervice global configuration
	Config config.Configuration
	// Log contains hs.Logger formatted
	Log *logrus.Logger
}

SFTPRepoSubService is a concrete implementation of SubRepoServiceInterface

func (*SFTPRepoSubService) Init

func (hs *SFTPRepoSubService) Init(_ *sync.WaitGroup)

Init start the service

type SubRepoServiceInterface

type SubRepoServiceInterface interface {
	// Init initialize the service
	Init(wg *sync.WaitGroup)
}

SubRepoServiceInterface is a interface that wrap functions for starting a subservice

Jump to

Keyboard shortcuts

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