ancore

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCore

func InitCore[F any, C any](opts ...Option) (*F, *C, aninterface.AnLogger)

Types

type AnCore

type AnCore struct {
	Flags  any
	Config any
	Logger aninterface.AnLogger
	AnWare *anware.AnWare
	Data   aninterface.StaticData
}

func BootCore

func BootCore(flg any, cfg any, logger aninterface.AnLogger, ctx context.Context, cancel context.CancelFunc) AnCore

func (*AnCore) Run

func (core *AnCore) Run()

type InitOptions added in v1.0.3

type InitOptions struct {
	LogPath    string
	ConfigPath string
	Debug      *bool
}

type Option added in v1.0.3

type Option func(*InitOptions)

func WithConfigPath added in v1.0.3

func WithConfigPath(p string) Option

func WithDebug added in v1.0.3

func WithDebug(b bool) Option

func WithLogPath added in v1.0.3

func WithLogPath(p string) Option

Jump to

Keyboard shortcuts

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