microservice

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 8 Imported by: 2

README

micro-service

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunService

func RunService(ss ...ServiceHandler)

Types

type MicroService

type MicroService[T cfg.ModelCfg, R di.ServiceDI] interface {
	GetModelCfgMgr() cfg.ModelCfgMgr
	GetDI() R
	NewLog(name string) (log.Logger, error)
	NewCfg(name string) (T, error)
}

func New added in v0.0.4

func New[T cfg.ModelCfg, R di.ServiceDI](mycfg T, mydi R) (MicroService[T, R], error)

type ServiceHandler

type ServiceHandler func(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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