core

package module
v0.0.0-...-c613671 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FactoryCreate

type FactoryCreate struct {
	DBConfig         *database.DBConfig
	K                *koanf.Koanf
	Redis            *redis.Redis
	ControllerConfig []*common.ControllerConfig
	Providers        []interface{}
	Imports          []*common.Module
}

type RequestValidator

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

func (*RequestValidator) Validate

func (rv *RequestValidator) Validate(i interface{}) error

type TBApp

type TBApp struct {
	Logger         *logf.Logger
	DB             *sqlx.DB
	DefaultQueries database.ThunderbyteQueries
	DBConfig       *database.DBConfig
}

func (*TBApp) Listen

func (tba *TBApp) Listen(port int) *echo.Echo

Listen It starts the server and listens on the specified address

type TBAppInterface

type TBAppInterface interface {
	Listen(port int)
}

type TBFactory

type TBFactory struct {
}

func (*TBFactory) Create

func (tbf *TBFactory) Create(fc *FactoryCreate) *TBApp

Create It returns a pointer to a new TBApp

type TBFactoryInterface

type TBFactoryInterface interface {
	Create(fc *FactoryCreate) *TBApp
}

Jump to

Keyboard shortcuts

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