testcaller

package
v0.5.16 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Generated by the go idl tools. DO NOT EDIT 2023-02-09 15:04:27 source: TestCaller

Generated by the go idl tools. DO NOT EDIT 2022-03-15 23:05:31 source: box_example

Generated by the go idl tools. DO NOT EDIT 2023-02-09 16:50:13

Index

Constants

View Source
const (
	SrvUUID = 3184522100753325409
	SrvName = "TestCaller"
)

Variables

View Source
var (
	ServiceUUID uint64 = SrvUUID
)

Functions

func InitSDK

func InitSDK(ops ...string) (idlrpc.ISDK, error)

func TestCallerProxyCreator

func TestCallerProxyCreator(trans transport.ITransport) idlrpc.IProxy

func TestCallerStubCreator

func TestCallerStubCreator(v interface{}) idlrpc.IStub

Types

type GetInfoCallBack added in v0.5.10

type GetInfoCallBack func(string, error)

type ITestCaller

type ITestCaller interface {
	idlrpc.IService
	SetInfo(idlrpc.IServiceContext, string) error
	GetInfo(idlrpc.IServiceContext) (string, error)
}

type SetInfoCallBack added in v0.5.10

type SetInfoCallBack func(error)

type TestCallerImpl

type TestCallerImpl struct {
	RpcCtx idlrpc.ContextKV
}
var (
	TestCallerInstance *TestCallerImpl
)

func NewTestCaller

func NewTestCaller() *TestCallerImpl

func (*TestCallerImpl) GetInfo

func (sp *TestCallerImpl) GetInfo(ctx idlrpc.IServiceContext) (ret1 string, err error)

func (*TestCallerImpl) GetNickName

func (sp *TestCallerImpl) GetNickName() string

func (*TestCallerImpl) GetUUID

func (sp *TestCallerImpl) GetUUID() uint64

func (*TestCallerImpl) OnAfterFork

func (sp *TestCallerImpl) OnAfterFork(ctx idlrpc.IServiceContext) bool

func (*TestCallerImpl) OnBeforeDestroy

func (sp *TestCallerImpl) OnBeforeDestroy() bool

func (*TestCallerImpl) OnCancel added in v0.5.1

func (sp *TestCallerImpl) OnCancel(subID string, event string) error

func (*TestCallerImpl) OnSubscribe added in v0.5.1

func (sp *TestCallerImpl) OnSubscribe(subID string, event string, bytes []byte) error

func (*TestCallerImpl) OnTick

func (sp *TestCallerImpl) OnTick() bool

func (*TestCallerImpl) SetInfo

func (sp *TestCallerImpl) SetInfo(ctx idlrpc.IServiceContext, _1 string) (err error)

type TestCallerProxy

type TestCallerProxy struct {
	idlrpc.ProxyBase
}

TestCallerProxy The service calls the proxy remotely

func (*TestCallerProxy) GetInfo

func (sp *TestCallerProxy) GetInfo(ctx idlrpc.IServiceContext) (ret1 string, err error)

func (*TestCallerProxy) GetInfoAsync added in v0.5.10

func (sp *TestCallerProxy) GetInfoAsync(ctx idlrpc.IServiceContext, cb GetInfoCallBack) error

func (*TestCallerProxy) GetSignature

func (sp *TestCallerProxy) GetSignature(methodIndex uint32) string

func (*TestCallerProxy) GetSrvName

func (sp *TestCallerProxy) GetSrvName() string

func (*TestCallerProxy) GetUUID

func (sp *TestCallerProxy) GetUUID() uint64

GetUUID service's uuids

func (*TestCallerProxy) IsOneWay

func (sp *TestCallerProxy) IsOneWay(methodId uint32) (isOneway bool)

func (*TestCallerProxy) SetInfo

func (sp *TestCallerProxy) SetInfo(ctx idlrpc.IServiceContext, _1 string) (err error)

func (*TestCallerProxy) SetInfoAsync added in v0.5.10

func (sp *TestCallerProxy) SetInfoAsync(ctx idlrpc.IServiceContext, _1 string, cb SetInfoCallBack) error

type TestCallerSDK

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

func (TestCallerSDK) GetNickName

func (sdk TestCallerSDK) GetNickName() string

func (*TestCallerSDK) GetUuid

func (sdk *TestCallerSDK) GetUuid() uint64

func (*TestCallerSDK) IsProxy

func (sdk *TestCallerSDK) IsProxy() bool

func (*TestCallerSDK) Register

func (sdk *TestCallerSDK) Register(rpc idlrpc.IRpc) error

type TestCallerStub

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

func NewTestCallerStub

func NewTestCallerStub(srvImpl ITestCaller) *TestCallerStub

func (*TestCallerStub) Call

func (sb *TestCallerStub) Call(ctx idlrpc.IServiceContext, methodId uint32, req []byte) (resp []byte, err error)

func (*TestCallerStub) GetInfo

func (sb *TestCallerStub) GetInfo(ctx idlrpc.IServiceContext, req []byte) (resp []byte, err error)

func (*TestCallerStub) GetMultipleNum added in v0.5.2

func (sb *TestCallerStub) GetMultipleNum() uint32

func (*TestCallerStub) GetServiceName

func (sb *TestCallerStub) GetServiceName() string

func (*TestCallerStub) GetSignature

func (sb *TestCallerStub) GetSignature(methodId uint32) string

func (*TestCallerStub) GetStatus

func (sb *TestCallerStub) GetStatus() idlrpc.ServiceStatus

func (*TestCallerStub) GetTimeout added in v0.5.10

func (sb *TestCallerStub) GetTimeout(methodIndex uint32) uint32

func (*TestCallerStub) GetUUID

func (sb *TestCallerStub) GetUUID() idlrpc.SvcUuid

func (*TestCallerStub) IsOneWay

func (sb *TestCallerStub) IsOneWay(methodId uint32) (isOneway bool)

func (*TestCallerStub) OnAfterFork

func (sb *TestCallerStub) OnAfterFork(ctx idlrpc.IServiceContext) bool

func (*TestCallerStub) OnBeforeDestroy

func (sb *TestCallerStub) OnBeforeDestroy() bool

func (*TestCallerStub) OnCancel added in v0.5.1

func (sb *TestCallerStub) OnCancel(subID string, event string) error

func (*TestCallerStub) OnSub added in v0.5.1

func (sb *TestCallerStub) OnSub(subID string, event string, data []byte) error

func (*TestCallerStub) OnTick

func (sb *TestCallerStub) OnTick() bool

func (*TestCallerStub) Return added in v0.5.10

func (sb *TestCallerStub) Return(ctx idlrpc.IServiceContext, methodIndex uint32, ret interface{}, err error) ([]byte, error)

func (*TestCallerStub) SetInfo

func (sb *TestCallerStub) SetInfo(ctx idlrpc.IServiceContext, req []byte) (resp []byte, err error)

func (*TestCallerStub) SetStatus

func (sb *TestCallerStub) SetStatus(status idlrpc.ServiceStatus)

Jump to

Keyboard shortcuts

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