core

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: GPL-2.0 Imports: 29 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

获取Redis连接池

func Init

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

func InitialModules

func InitialModules()

func SignalNotify

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

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

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
* * This file is auto generated by tto v0.4.5 ! * If you want to modify this code, please read the guide * to modify code template.
* * This file is auto generated by tto v0.4.5 ! * If you want to modify this code, please read the guide * to modify code template.
impl
* * Copyright 2015 @ at3.net.
* * Copyright 2015 @ at3.net.
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
ad
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
after-sales
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
content
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
delivery
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.
express
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/ad
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/after-sales
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/content
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/delivery
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.
interface/domain/enum
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/express
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/item
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.
interface/member
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/merchant
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/merchant/shop
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/merchant/user
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.
interface/mss
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/mss/notify
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/payment
Package payment 支付单,不限于订单,可以生成支付单,即一个支付请求
Package payment 支付单,不限于订单,可以生成支付单,即一个支付请求
interface/personfinance
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/product
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/promotion
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/shipment
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/valueobject
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
interface/wallet
create for src 29/11/2017 ( jarrysix@gmail.com )
create for src 29/11/2017 ( jarrysix@gmail.com )
item
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
member
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
merchant
create for src 30/11/2017 ( jarrysix@gmail.com ) * * Copyright 2015 @ 56x.net.
create for src 30/11/2017 ( jarrysix@gmail.com ) * * Copyright 2015 @ 56x.net.
merchant/shop
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
merchant/user
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.
mss
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
mss/notify
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
order
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
personfinance
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
product
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
promotion
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
shipment
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
tmp
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
domain
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.
domain/util
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
format
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
gen
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
gen/rsc
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
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
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
payment
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
payment/alipay
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
tool
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
tool/sms
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
tool/sms/aliyu
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
tool/sms/cl253
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
ui
* * Copyright 2015 @ at3.net.
* * Copyright 2015 @ at3.net.
pay
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ at3.net.
* * Copyright 2015 @ at3.net.
impl
* * Copyright 2015 @ 56x.net.
* * Copyright 2015 @ 56x.net.
parser
* * Copyright 2015 @ at3.net.
* * Copyright 2015 @ at3.net.
* * Copyright 2014 @ 56x.net.
* * Copyright 2014 @ 56x.net.

Jump to

Keyboard shortcuts

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