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 NewDatabase ¶
func NewDatabase()
Types ¶
type ECHOWrapper ¶
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
}
type GRPCWrapper ¶
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
}
Click to show internal directories.
Click to hide internal directories.