core

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: GPL-2.0 Imports: 31 Imported by: 0

Documentation

Overview

*

  • Copyright 2014 @ 56x.net.
  • name :
  • author : jarryliu
  • date : 2014-02-05 21:53
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : types.go
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : fix
  • author : jarryliu
  • date : 2016-05-14 21:31
  • description : 自定义调整
  • history :

Index

Constants

View Source
const (
	//数据库驱动名称
	DbDriver  = "db_driver"
	DbServer  = "db_server"
	DbPort    = "db_port"
	DbName    = "db_name"
	DbUsr     = "db_user"
	DbPwd     = "db_pwd"
	DbCharset = "db_charset"
)
View Source
const Version = "0.2.0"

版本号

Variables

View Source
var (
	CleanHookFunc func(gof.App) // 当清理数据时候发生
)

Functions

func AppDispose

func AppDispose()

func CleanRedisCache

func CleanRedisCache(app gof.App)

清除redis缓存

func GetRedisConn

func GetRedisConn() redis.Conn

获取Redis连接

func GetRedisPool

func GetRedisPool() *redis.Pool

GetRedisPool 获取Redis连接池,will be remove

func Init

func Init(a *AppImpl, debug, trace bool) bool

func InitialModules

func InitialModules()

func SignalNotify

func SignalNotify(c chan bool, fn func())

SignalNotify 监听进程信号,并执行操作。比如退出时应释放资源

func Startup

func Startup(job func())

Types

type AppImpl

type AppImpl struct {
	Loaded bool
	// contains filtered or unexported fields
}

application context

func NewApp

func NewApp(confPath string, cfg *clientv3.Config) *AppImpl

func (*AppImpl) Config

func (a *AppImpl) Config() *gof.Config

func (*AppImpl) Db

func (a *AppImpl) Db() db.Connector

func (*AppImpl) Debug

func (a *AppImpl) Debug() bool

func (*AppImpl) Log

func (a *AppImpl) Log() log.ILogger

func (*AppImpl) Registry

func (a *AppImpl) Registry() *gof.Registry

func (*AppImpl) Source

func (a *AppImpl) Source() interface{}

func (*AppImpl) Storage

func (a *AppImpl) Storage() storage.Interface

Directories

Path Synopsis
dao
*
*
impl
*
*
*
*
ad
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
interface/payment
Package payment 支付单,不限于订单,可以生成支付单,即一个支付请求
Package payment 支付单,不限于订单,可以生成支付单,即一个支付请求
*
*
*
*
*
interface/wallet
create for src 29/11/2017 ( jarrysix@gmail.com )
create for src 29/11/2017 ( jarrysix@gmail.com )
item
*
*
job
member
*
*
merchant
create for src 30/11/2017 ( jarrysix@gmail.com )
create for src 30/11/2017 ( jarrysix@gmail.com )
*
*
*
*
order
*
*
*
*
*
*
tmp
*
*
*
*
domain
*
*
*
format
*
*
gen
*
*
*
gen/rsc/gf256
Package gf256 implements arithmetic over the Galois Field GF(256).
Package gf256 implements arithmetic over the Galois Field GF(256).
gen/rsc/qr
Package qr encodes QR codes.
Package qr encodes QR codes.
gen/rsc/qr/coding
Package coding implements low-level QR coding details.
Package coding implements low-level QR coding details.
lbs
log
mss
*
*
*
*
tool
*
*
*
*
*
*
*
pay
*
*
*
*
*
impl
*
*
parser
*
*
*

Jump to

Keyboard shortcuts

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