service

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 22 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 {
	Container depinjection.DependencyInjection

	Config *config.Config
	Name   string

	Validator *validator.Validate
}

func NewService

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

func (*BaseService) ProvideDatabase

func (bs *BaseService) ProvideDatabase() error

func (*BaseService) ProvideHttpServer

func (bs *BaseService) ProvideHttpServer() error

func (*BaseService) ProvideMetrics

func (bs *BaseService) ProvideMetrics() error

func (*BaseService) StoreMetricsFromRequest

func (bs *BaseService) StoreMetricsFromRequest(ctx *shared.Context)

type Test

type Test struct {
	Name string
}

Directories

Path Synopsis
domain

Jump to

Keyboard shortcuts

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