service

package
v0.0.0-...-649a59b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WeCrossRPCServiceTag = "WeCrossRPCService"

	Max_Send_Wait_Time = 20 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type WeCrossRPCService

type WeCrossRPCService struct {
	// contains filtered or unexported fields
}

func NewWeCrossRPCService

func NewWeCrossRPCService() *WeCrossRPCService

func (*WeCrossRPCService) AsyncSend

func (wcs *WeCrossRPCService) AsyncSend(httpMethod string, uri string, request *types.Request, responseType response.ResponseType, back *types.CallBack)

func (*WeCrossRPCService) GetTransactionContex

func (wcs *WeCrossRPCService) GetTransactionContex() *transactionContext.TxCtx

func (*WeCrossRPCService) Init

func (*WeCrossRPCService) Send

func (wcs *WeCrossRPCService) Send(httpMethod string, uri string, inputRequest *types.Request, responseType response.ResponseType) (*types.Response, *common.WeCrossSDKError)

func (*WeCrossRPCService) SetClassPath

func (wcs *WeCrossRPCService) SetClassPath(dirpath string)

type WeCrossService

type WeCrossService interface {
	Init() *common.WeCrossSDKError
	Send(httpMethod string, uri string, request *types.Request, responseType response.ResponseType) (*types.Response, *common.WeCrossSDKError)
	AsyncSend(httpMethod string, uri string, request *types.Request, responseType response.ResponseType, back *types.CallBack)
	GetTransactionContex() *transactionContext.TxCtx
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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