Documentation
¶
Overview ¶
ctx.go core_runtime Created by Karim Hassan on 07/07/2025.
This file implements the context.Context interface for the core runtime. It allows the core runtime to be used as a context in Go's standard library and other libraries that require a context.Context implementation. It will most definitely change in the future
engine.go core_runtime
Created by Karim Hassan on 07/07/2025.
init.go core_runtime
Created by karim-w on 07/07/2025.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
func Setup(deps Dependencies) error
Types ¶
type Dependencies ¶
type Engine ¶
type Engine interface {
context.Context
// Lifecycle
Start(
opt StartOperationOptions,
) (Engine, error)
Stop() error
Cleanup() error
// LOGGER
Logger() runtimemodules.Logger
// STORE
Get(key string) (any, bool)
Set(key string, value any)
// HTTP
HTTP(url string) aych.Request
// REDIS
RDB(
key string,
) gopts.Option[*redis.Client]
DLock(key string) (*redsync.Mutex, error)
// SQL
SQL(key string) gopts.Option[squeel.Pipeline]
SQLBegin(key, id string) (squeel.Pipeline, bool, error)
SQLCommit(key, id string) error
SQLRollback(key, id string) error
// TRACES
TraceID() string
SpanID() string
ParentID() string
}
func NewWithOptions ¶
func NewWithOptions(opt EngineOptions) Engine
type EngineOptions ¶
type StartOperationOptions ¶
type StartOperationOptions struct {
ModuleName string
OperationName string
TransientArgs []runtimemodules.LoggerField
ScopedArgs []runtimemodules.LoggerField
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
tracer.go core_runtime
|
tracer.go core_runtime |
|
traces.go core_runtime
|
traces.go core_runtime |
Click to show internal directories.
Click to hide internal directories.