apps

package
v0.0.0-...-6a8978f Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 1 Imported by: 0

README

所有业务领域模块

  • blog: 文章管理
  • tag: 标签管理

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHttpService

func GetHttpService(name string) any

获取对象

func GetService

func GetService(name string) any

获取对象

func Init

func Init() error

初始化所有已经注册过来的实例

func InitHttpService

func InitHttpService(rootRouter gin.IRouter) error

func Registry

func Registry(svc Service)

对象注册

func RegistryHttp

func RegistryHttp(svc HttpService)

Types

type HttpService

type HttpService interface {
	Service
	Registry(gin.IRouter)
}

作为一个实现了Gin HTTP Handler服务, 提供一个路由注册功能

type Service

type Service interface {
	Init() error
	Name() string
}

代表他是一个Ioc的Service Object

Directories

Path Synopsis
api
tag
api
api

Jump to

Keyboard shortcuts

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