core

package module
v0.0.0-...-16b35d8 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 15 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
	SMTPPool         *smtppool.Pool
	Redis            *redis.Redis
	ControllerConfig []*common.ControllerConfig
	Providers        []interface{}
	Imports          []*common.Module
	O11Y             *O11Y
}

type NewRelicConfig

type NewRelicConfig struct {
	AppName    string
	Enabled    bool
	LicenseKey string
	UserKey    string
}

type O11Y

type O11Y struct {
	NewRelic *NewRelicConfig
}

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