service

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(serviceName string, serviceLogic func(baseService *BaseService) error)

Types

type BaseService

type BaseService struct {
	Config *config.Config
	Name   string

	Database *database.Database
	Http     *httpserver.HttpServer

	Validator *validator.Validate
}

func NewService

func NewService(serviceName string) (*BaseService, error)

func (*BaseService) NewDatabase added in v0.2.0

func (bs *BaseService) NewDatabase() (*database.Database, error)

func (*BaseService) NewHttpServer added in v0.2.0

func (bs *BaseService) NewHttpServer() (*httpserver.HttpServer, error)

func (*BaseService) ProvideMetrics

func (bs *BaseService) ProvideMetrics(hostname string) error

type Test

type Test struct {
	Name string
}

Directories

Path Synopsis
domain
logger

Jump to

Keyboard shortcuts

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