Documentation ¶
Index ¶
- Constants
- func C(p util.Map) *core.Config
- func Config() *core.Config
- func MiniProgram() *mini.Program
- func OfficialAccount() *official.Account
- func Payment() *payment.Payment
- func PaymentBill() *payment.Bill
- func PaymentJSSDK() *payment.JSSDK
- func PaymentOrder() *payment.Order
- func PaymentRedPack() *payment.RedPack
- func PaymentRefund() *payment.Refund
- func PaymentReverse() *payment.Reverse
- func PaymentSandbox() *payment.Sandbox
- func PaymentSecurity() *payment.Security
- func PaymentTransfer() *payment.Transfer
- type Application
- func (a *Application) Config() *core.Config
- func (a *Application) Get(name string) (interface{}, bool)
- func (a *Application) GetInterface(name string) (interface{}, bool)
- func (a *Application) MiniProgram(cfg string) *mini.Program
- func (a *Application) New(name string, args ...interface{}) interface{}
- func (a *Application) OfficialAccount(cfg string) *official.Account
- func (a *Application) Payment(cfg string) *payment.Payment
- func (a *Application) Register(name string, v interface{})
- type Server
- type System
Constants ¶
const RegAccessToken = "access_token"
RegAccessToken access token
const RegClient = "client"
RegClient client
const RegConfig = "config"
RegConfig config
Variables ¶
This section is empty.
Functions ¶
func PaymentJSSDK ¶ added in v1.1.1
PaymentJSSDK result payment JSSDK
func PaymentOrder ¶ added in v1.1.1
PaymentOrder result payment Order
func PaymentRedPack ¶ added in v1.1.1
PaymentRedPack result payment RedPack
func PaymentRefund ¶ added in v1.1.1
PaymentRefund result payment Refund
func PaymentReverse ¶ added in v1.1.1
PaymentReverse result payment Reverse
func PaymentSandbox ¶ added in v1.1.1
PaymentSandbox result payment Sandbox
func PaymentSecurity ¶ added in v1.1.1
PaymentSecurity result payment Security
func PaymentTransfer ¶ added in v1.1.1
PaymentTransfer result payment Transfer
Types ¶
type Application ¶
type Application struct { *System // contains filtered or unexported fields }
Application Application
func DefaultApplication ¶ added in v1.0.1
func DefaultApplication() *Application
DefaultApplication result an default application
func NewApplication ¶ added in v1.0.1
func NewApplication(path string) *Application
NewApplication create an application instance with config.toml path
func (*Application) Config ¶ added in v1.0.1
func (a *Application) Config() *core.Config
Config get application config interface
func (*Application) GetInterface ¶ added in v1.0.1
func (a *Application) GetInterface(name string) (interface{}, bool)
GetInterface 获取注册的interface
func (*Application) MiniProgram ¶ added in v1.0.1
func (a *Application) MiniProgram(cfg string) *mini.Program
MiniProgram return a default MiniProgram
func (*Application) New ¶ added in v1.0.1
func (a *Application) New(name string, args ...interface{}) interface{}
New create an new instance
func (*Application) OfficialAccount ¶ added in v1.0.1
func (a *Application) OfficialAccount(cfg string) *official.Account
OfficialAccount return a default OfficialAccount
func (*Application) Payment ¶ added in v1.0.1
func (a *Application) Payment(cfg string) *payment.Payment
Payment return a default Payment
func (*Application) Register ¶
func (a *Application) Register(name string, v interface{})
Register 注册
type System ¶ added in v1.0.1
type System struct { //debug = true Debug bool `toml:"debug"` //response_type = 'array' //ResponseType string `toml:"response_type"` //use_cache = true //DataType DataType `toml:"data_type"` UseSandbox bool `toml:"use_sandbox"` UseCache bool `toml:"use_cache"` Log log.Log }
System 系统定义