appx

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

* @Author: hugo * @Date: 2024-05-11 15:05 * @LastEditors: hugo * @LastEditTime: 2024-06-17 20:45 * @FilePath: \gotox\appx\appx.go * @Description: * * Copyright (c) 2024 by hugo, All Rights Reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithConfigMode

func WithConfigMode(mode string) configx.Option

func WithConfigPath

func WithConfigPath(path string) configx.Option

Types

type Appx

type Appx struct {
	Configx        *configx.Configx
	Logger         logx.Logger
	Cachex         cachex.Cachexer
	DBs            *ormx.Ormx
	Serverx        *serverx.Serverx
	ResourcexGroup *resourcex.ResourcexGroup
	TaskxGroup     *taskx.TaskxGroup
}

func New

func New(opt ...configx.Option) *Appx

func (*Appx) EnableCache

func (app *Appx) EnableCache() *Appx

func (*Appx) EnableDB

func (app *Appx) EnableDB(ops ...ormx.Option) *Appx

func (*Appx) EnableTasks

func (app *Appx) EnableTasks(taskGenFuncs ...func() taskx.Task) *Appx

func (*Appx) EnableWebServer

func (app *Appx) EnableWebServer() *Appx

func (*Appx) MigratTables

func (app *Appx) MigratTables(fns ...func() error) *Appx

func (*Appx) RegisterServies

func (app *Appx) RegisterServies(fns ...func() webx.Handler) *Appx

func (*Appx) Run

func (app *Appx) Run()

Jump to

Keyboard shortcuts

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