coreapp

module
v0.0.0-...-5637ef3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0

README

qiqbedge

engine server

Prerequisites

Commands

The commands are defined in Taskfile.yml. You can choose to run the commands in the way that suits you best.

.env file

The .env file contains environment variables used by the task runner.

LOG_DIR=/path/to/logs
run

Runs the engine process in the foreground.

Usage
task run

To specify a custom setting file path, use:

LOG_DIR=/path/to/log SETTING_PATH=/path/to/setting task run
build-start

Runs the engine process in the background.

Usage
task build-start

To specify a custom log directory and setting file path, use:

SETTING_PATH=/path/to/setting LOG_DIR=/path/to/log task build-start
Details
  • First, executes build-core to compile the core application.
  • Then, runs {{.CORE_APP_BIN_NAME}} poller with logs stored in {{.LD}} (default: ./shares/logs) and settings loaded from {{.SETTING_PATH}} (default: ./shares/settings/setting.json).
  • metrics log path is set in settings in {{.SETTING_PATH}}.
  • The process runs in the background via nohup, with output redirected to /dev/null.
  • The process ID is stored in {{.PID_FILE}}
stop

Stops the engine process.

Usage

Stops the engine process running whose process ID is stored in {{.PID_FILE}}.

task stop

Generate codes from OAS

Prerequisites

Generate codes

$ task generate

Others

Look at the Taskfile.yml for more commands.

Directories

Path Synopsis
cmd
edge command
gen
multiprog
oas
gen/mock_providerapi
Package mock_providerapi is a generated GoMock package.
Package mock_providerapi is a generated GoMock package.
gen/providerapi
Code generated by ogen, DO NOT EDIT.
Code generated by ogen, DO NOT EDIT.
spec
sse
Package sse is a generated GoMock package.
Package sse is a generated GoMock package.

Jump to

Keyboard shortcuts

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