manager

package
v0.1.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager 所有的组件都注册到这里

func CreateManager

func CreateManager() Manager

CreateManager create manager

func GetManager

func GetManager() Manager

GetManager get manager

func (Manager) CloseManager

func (m Manager) CloseManager() error

CloseManager close manager

func (Manager) GetConfig

func (m Manager) GetConfig() configs.Config

GetConfig get config

func (Manager) GetDB

func (m Manager) GetDB() *gorm.DB

GetDB get db

func (Manager) GetEs

func (m Manager) GetEs() service.Elasticsearch

GetEs get es

func (Manager) GetIPLimiter

func (m Manager) GetIPLimiter() *ratelimit.IPRateLimiter

GetIPLimiter get ip limiter

type RegistryManagerInterface

type RegistryManagerInterface interface {
	CloseManager() error
	GetDB() *gorm.DB
	GetIPLimiter() *ratelimit.IPRateLimiter
	GetConfig() configs.Config
	GetEs() *service.Elasticsearch
}

RegistryManagerInterface manager interface

Jump to

Keyboard shortcuts

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