manager

package
v0.0.0-...-03cd4a3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeManager

type FakeManager struct {
	mock.Mock
	// contains filtered or unexported fields
}

FakeManager is a fake implementation of the Manager interface for testing purposes.

func NewFakeManager

func NewFakeManager() *FakeManager

NewFakeManager creates a new instance of FakeManager.

func (*FakeManager) GetConfig

func (fm *FakeManager) GetConfig() *config.Config

func (*FakeManager) GetDatabase

func (fm *FakeManager) GetDatabase() *sql.DB

func (*FakeManager) GetGorm

func (fm *FakeManager) GetGorm() *gorm.DB

func (*FakeManager) GetHttp

func (fm *FakeManager) GetHttp() httpClient.Http

func (*FakeManager) GetServer

func (fm *FakeManager) GetServer() *server.Server

func (*FakeManager) SetConfig

func (fm *FakeManager) SetConfig(cfg *config.Config)

SetConfig sets the configuration for the fake manager.

func (*FakeManager) SetDatabase

func (fm *FakeManager) SetDatabase(db *sql.DB)

SetDatabase sets the database for the fake manager.

func (*FakeManager) SetGorm

func (fm *FakeManager) SetGorm(dbGorm *gorm.DB)

SetGorm sets the Gorm database for the fake manager.

func (*FakeManager) SetHttp

func (fm *FakeManager) SetHttp(httpClient httpClient.Http)

SetHttp sets the HTTP client for the fake manager.

func (*FakeManager) SetServer

func (fm *FakeManager) SetServer(srv *server.Server)

SetServer sets the server for the fake manager.

type Manager

type Manager interface {
	GetConfig() *config.Config
	GetServer() *server.Server
	GetDatabase() *sql.DB
	GetGorm() *gorm.DB
	GetHttp() httpClient.Http
}

func NewInit

func NewInit() (Manager, error)

Jump to

Keyboard shortcuts

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