corex

package module
v0.0.0-...-e55081e Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

README

corex

corex is the cornerstone of the nexusops project, serving as a sophisticated abstraction layer that underpins the core operations of the system. It provides a flexible, modular foundation, ensuring seamless adaptability to future changes in underlying frameworks.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	New     = kratos.New
	Server  = kratos.Server
	Context = kratos.Context
	Name    = kratos.Name
)
View Source
var Registrar = kratos.Registrar

Functions

func SetupSignalContext

func SetupSignalContext() context.Context

SetupSignalContext is same as SetupSignalHandler, but a context.Context is returned. Only one of SetupSignalContext and SetupSignalHandler should be called, and only can be called once.

func SetupSignalHandler

func SetupSignalHandler() <-chan struct{}

SetupSignalHandler registered for SIGTERM and SIGINT. A stop channel is returned which is closed on one of these signals. If a second signal is caught, the program is terminated with exit code 1. Only one of SetupSignalContext and SetupSignalHandler should be called, and only can be called once.

Types

type App

type App = kratos.App

Directories

Path Synopsis
contrib
datastore
sql
log
utils
cli

Jump to

Keyboard shortcuts

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