external_service

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

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 (*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 (*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{}
}

Jump to

Keyboard shortcuts

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