testcallee

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 2022-03-15 23:05:32 source: box_example

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

Index

Constants

View Source
const (
	SrvUUID = 3184522100753325396
	SrvName = "TestCallee"
)

Variables

View Source
var (
	ServiceUUID uint64 = SrvUUID
)

Functions

func InitSDK

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

func TestCalleeProxyCreator

func TestCalleeProxyCreator(trans transport.ITransport) idlrpc.IProxy

func TestCalleeStubCreator

func TestCalleeStubCreator(v interface{}) idlrpc.IStub

Types

type AddCallBack added in v0.5.10

type AddCallBack func(int32, error)

type DivideCallBack added in v0.5.10

type DivideCallBack func(int32, error)

type SubCallBack added in v0.5.10

type SubCallBack func(int32, error)

type SubPrivateCallBack added in v0.5.10

type SubPrivateCallBack func(int32, error)

type TestCalleeImpl

type TestCalleeImpl struct {
}
var (
	TestCallerInstance *TestCalleeImpl
)

func NewTestCallee

func NewTestCallee() *TestCalleeImpl

func (*TestCalleeImpl) Add

func (sp *TestCalleeImpl) Add(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)

func (*TestCalleeImpl) Divide added in v0.4.24

func (sp *TestCalleeImpl) Divide(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)

func (*TestCalleeImpl) GetNickName

func (sp *TestCalleeImpl) GetNickName() string

func (*TestCalleeImpl) GetUUID

func (sp *TestCalleeImpl) GetUUID() uint64

func (*TestCalleeImpl) OnAfterFork

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

func (*TestCalleeImpl) OnBeforeDestroy

func (sp *TestCalleeImpl) OnBeforeDestroy() bool

func (*TestCalleeImpl) OnCancel added in v0.5.1

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

func (*TestCalleeImpl) OnSubscribe added in v0.5.1

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

func (*TestCalleeImpl) OnTick

func (sp *TestCalleeImpl) OnTick() bool

func (*TestCalleeImpl) Sub

func (sp *TestCalleeImpl) Sub(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)

func (*TestCalleeImpl) SubPrivate added in v0.4.24

func (sp *TestCalleeImpl) SubPrivate(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)

type TestCalleeProxy

type TestCalleeProxy struct {
	idlrpc.ProxyBase
}

TestCalleeProxy The service calls the proxy remotely

func (*TestCalleeProxy) Add

func (sp *TestCalleeProxy) Add(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)

func (*TestCalleeProxy) AddAsync added in v0.5.10

func (sp *TestCalleeProxy) AddAsync(ctx idlrpc.IServiceContext, _1 int32, _2 int32, cb AddCallBack) error

func (*TestCalleeProxy) Divide added in v0.4.24

func (sp *TestCalleeProxy) Divide(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)

func (*TestCalleeProxy) DivideAsync added in v0.5.10

func (sp *TestCalleeProxy) DivideAsync(ctx idlrpc.IServiceContext, _1 int32, _2 int32, cb DivideCallBack) error

func (*TestCalleeProxy) GetSignature

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

func (*TestCalleeProxy) GetSrvName

func (sp *TestCalleeProxy) GetSrvName() string

func (*TestCalleeProxy) GetUUID

func (sp *TestCalleeProxy) GetUUID() uint64

GetUUID service's uuids

func (*TestCalleeProxy) IsOneWay

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

func (*TestCalleeProxy) Sub

func (sp *TestCalleeProxy) Sub(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)

func (*TestCalleeProxy) SubAsync added in v0.5.10

func (sp *TestCalleeProxy) SubAsync(ctx idlrpc.IServiceContext, _1 int32, _2 int32, cb SubCallBack) error

func (*TestCalleeProxy) SubPrivate added in v0.4.24

func (sp *TestCalleeProxy) SubPrivate(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)

func (*TestCalleeProxy) SubPrivateAsync added in v0.5.10

func (sp *TestCalleeProxy) SubPrivateAsync(ctx idlrpc.IServiceContext, _1 int32, _2 int32, cb SubPrivateCallBack) error

type TestCalleeSDK

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

func (TestCalleeSDK) GetNickName

func (sdk TestCalleeSDK) GetNickName() string

func (*TestCalleeSDK) GetUuid

func (sdk *TestCalleeSDK) GetUuid() uint64

func (*TestCalleeSDK) IsProxy

func (sdk *TestCalleeSDK) IsProxy() bool

func (*TestCalleeSDK) Register

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

type TestCalleeStub

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

func NewTestCalleeStub

func NewTestCalleeStub(srvImpl ITestCallee) *TestCalleeStub

func (*TestCalleeStub) Add

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

func (*TestCalleeStub) Call

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

func (*TestCalleeStub) Divide added in v0.4.24

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

func (*TestCalleeStub) GetMultipleNum added in v0.5.2

func (sb *TestCalleeStub) GetMultipleNum() uint32

func (*TestCalleeStub) GetServiceName

func (sb *TestCalleeStub) GetServiceName() string

func (*TestCalleeStub) GetSignature

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

func (*TestCalleeStub) GetStatus

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

func (*TestCalleeStub) GetTimeout added in v0.5.10

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

func (*TestCalleeStub) GetUUID

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

func (*TestCalleeStub) IsOneWay

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

func (*TestCalleeStub) OnAfterFork

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

func (*TestCalleeStub) OnBeforeDestroy

func (sb *TestCalleeStub) OnBeforeDestroy() bool

func (*TestCalleeStub) OnCancel added in v0.5.1

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

func (*TestCalleeStub) OnSub added in v0.5.1

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

func (*TestCalleeStub) OnTick

func (sb *TestCalleeStub) OnTick() bool

func (*TestCalleeStub) Return added in v0.5.10

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

func (*TestCalleeStub) SetStatus

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

func (*TestCalleeStub) Sub

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

func (*TestCalleeStub) SubPrivate added in v0.4.24

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

Jump to

Keyboard shortcuts

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