Documentation
¶
Index ¶
- Variables
- type BaseExternalServiceClass
- func (this *BaseExternalServiceClass) GetJson(url string, params map[string]interface{}) interface{}
- func (this *BaseExternalServiceClass) GetJsonForStruct(url string, params map[string]interface{}, struct_ interface{})
- func (this *BaseExternalServiceClass) Init(driver *ExternalServiceDriverClass)
- func (this *BaseExternalServiceClass) PostJson(url string, params map[string]interface{}) interface{}
- func (this *BaseExternalServiceClass) PostJsonForStruct(url string, params map[string]interface{}, struct_ interface{})
- type ExternalServiceDriverClass
- type InterfaceExternalService
Constants ¶
This section is empty.
Variables ¶
View Source
var ExternalServiceDriver = ExternalServiceDriverClass{ // contains filtered or unexported fields }
Functions ¶
This section is empty.
Types ¶
type BaseExternalServiceClass ¶
type BaseExternalServiceClass struct { }
让外部服务可以通过这个基类调用内部功能
func (*BaseExternalServiceClass) GetJson ¶
func (this *BaseExternalServiceClass) GetJson(url string, params map[string]interface{}) interface{}
func (*BaseExternalServiceClass) GetJsonForStruct ¶
func (this *BaseExternalServiceClass) GetJsonForStruct(url string, params map[string]interface{}, struct_ interface{})
func (*BaseExternalServiceClass) Init ¶
func (this *BaseExternalServiceClass) Init(driver *ExternalServiceDriverClass)
func (*BaseExternalServiceClass) PostJson ¶
func (this *BaseExternalServiceClass) PostJson(url string, params map[string]interface{}) interface{}
func (*BaseExternalServiceClass) PostJsonForStruct ¶
func (this *BaseExternalServiceClass) PostJsonForStruct(url string, params map[string]interface{}, struct_ interface{})
type ExternalServiceDriverClass ¶
type ExternalServiceDriverClass struct {
// contains filtered or unexported fields
}
接口驱动
func (*ExternalServiceDriverClass) Call ¶
func (this *ExternalServiceDriverClass) Call(name string, method string) interface{}
func (*ExternalServiceDriverClass) Register ¶
func (this *ExternalServiceDriverClass) Register(name string, svc InterfaceExternalService) bool
func (*ExternalServiceDriverClass) Startup ¶
func (this *ExternalServiceDriverClass) Startup()
type InterfaceExternalService ¶
type InterfaceExternalService interface { Init(driver *ExternalServiceDriverClass) PostJsonForStruct(url string, params map[string]interface{}, struct_ interface{}) PostJson(url string, params map[string]interface{}) interface{} GetJsonForStruct(url string, params map[string]interface{}, struct_ interface{}) GetJson(url string, params map[string]interface{}) interface{} }
Click to show internal directories.
Click to hide internal directories.