initialize

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InfoLogPath  = "./logs/info.log"
	ErrLogPath   = "./logs/error.log"
	DebugLogPath = "./logs/debug.log"
)

Variables

This section is empty.

Functions

func CustomEncodeTime

func CustomEncodeTime(t time.Time, enc zapcore.PrimitiveArrayEncoder)

CustomEncodeTime 自定义时间编码(类似OneOps的方式,但使用Controller标识)

func InitMachineAddress

func InitMachineAddress()

func InitPlatformInfo

func InitPlatformInfo()

func InitZap

func InitZap() *zap.Logger

InitZap 初始化zap日志器(类似OneOps的方式)

func NewConfig

func NewConfig()

func NewDatabase

func NewDatabase()

Types

type ECHOWrapper

type ECHOWrapper struct {
	*xecho.Server
}

func NewECHO

func NewECHO(server *xecho.Server) *ECHOWrapper

func (*ECHOWrapper) Info

func (w *ECHOWrapper) Info() *server.ServiceInfo

type Engine

type Engine struct {
	jupiter.Application
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine() *Engine

type GRPCWrapper

type GRPCWrapper struct {
	*xgrpc.Server
	// contains filtered or unexported fields
}

func NewGRPC

func NewGRPC(server *xgrpc.Server, pm *packages.PackageManager) *GRPCWrapper

func (*GRPCWrapper) Info

func (w *GRPCWrapper) Info() *server.ServiceInfo

type Infoer

type Infoer interface {
	Info() *server.ServiceInfo
}

Jump to

Keyboard shortcuts

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