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
- Variables
- func InitSDK(ops ...string) (idlrpc.ISDK, error)
- func TestCalleeProxyCreator(trans transport.ITransport) idlrpc.IProxy
- func TestCalleeStubCreator(v interface{}) idlrpc.IStub
- type AddCallBack
- type DivideCallBack
- type ITestCallee
- type SubCallBack
- type SubPrivateCallBack
- type TestCalleeImpl
- func (sp *TestCalleeImpl) Add(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)
- func (sp *TestCalleeImpl) Divide(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)
- func (sp *TestCalleeImpl) GetNickName() string
- func (sp *TestCalleeImpl) GetUUID() uint64
- func (sp *TestCalleeImpl) OnAfterFork(ctx idlrpc.IServiceContext) bool
- func (sp *TestCalleeImpl) OnBeforeDestroy() bool
- func (sp *TestCalleeImpl) OnCancel(subID string, event string) error
- func (sp *TestCalleeImpl) OnSubscribe(subID string, event string, bytes []byte) error
- func (sp *TestCalleeImpl) OnTick() bool
- func (sp *TestCalleeImpl) Sub(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)
- func (sp *TestCalleeImpl) SubPrivate(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)
- type TestCalleeProxy
- func (sp *TestCalleeProxy) Add(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)
- func (sp *TestCalleeProxy) AddAsync(ctx idlrpc.IServiceContext, _1 int32, _2 int32, cb AddCallBack) error
- func (sp *TestCalleeProxy) Divide(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)
- func (sp *TestCalleeProxy) DivideAsync(ctx idlrpc.IServiceContext, _1 int32, _2 int32, cb DivideCallBack) error
- func (sp *TestCalleeProxy) GetSignature(methodIndex uint32) string
- func (sp *TestCalleeProxy) GetSrvName() string
- func (sp *TestCalleeProxy) GetUUID() uint64
- func (sp *TestCalleeProxy) IsOneWay(methodId uint32) (isOneway bool)
- func (sp *TestCalleeProxy) Sub(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)
- func (sp *TestCalleeProxy) SubAsync(ctx idlrpc.IServiceContext, _1 int32, _2 int32, cb SubCallBack) error
- func (sp *TestCalleeProxy) SubPrivate(ctx idlrpc.IServiceContext, _1 int32, _2 int32) (ret1 int32, err error)
- func (sp *TestCalleeProxy) SubPrivateAsync(ctx idlrpc.IServiceContext, _1 int32, _2 int32, cb SubPrivateCallBack) error
- type TestCalleeSDK
- type TestCalleeStub
- func (sb *TestCalleeStub) Add(ctx idlrpc.IServiceContext, req []byte) (resp []byte, err error)
- func (sb *TestCalleeStub) Call(ctx idlrpc.IServiceContext, methodId uint32, req []byte) (resp []byte, err error)
- func (sb *TestCalleeStub) Divide(ctx idlrpc.IServiceContext, req []byte) (resp []byte, err error)
- func (sb *TestCalleeStub) GetMultipleNum() uint32
- func (sb *TestCalleeStub) GetServiceName() string
- func (sb *TestCalleeStub) GetSignature(methodId uint32) string
- func (sb *TestCalleeStub) GetStatus() idlrpc.ServiceStatus
- func (sb *TestCalleeStub) GetTimeout(methodIndex uint32) uint32
- func (sb *TestCalleeStub) GetUUID() idlrpc.SvcUuid
- func (sb *TestCalleeStub) IsOneWay(methodId uint32) (isOneway bool)
- func (sb *TestCalleeStub) OnAfterFork(ctx idlrpc.IServiceContext) bool
- func (sb *TestCalleeStub) OnBeforeDestroy() bool
- func (sb *TestCalleeStub) OnCancel(subID string, event string) error
- func (sb *TestCalleeStub) OnSub(subID string, event string, data []byte) error
- func (sb *TestCalleeStub) OnTick() bool
- func (sb *TestCalleeStub) Return(ctx idlrpc.IServiceContext, methodIndex uint32, ret interface{}, err error) ([]byte, error)
- func (sb *TestCalleeStub) SetStatus(status idlrpc.ServiceStatus)
- func (sb *TestCalleeStub) Sub(ctx idlrpc.IServiceContext, req []byte) (resp []byte, err error)
- func (sb *TestCalleeStub) SubPrivate(ctx idlrpc.IServiceContext, req []byte) (resp []byte, err error)
Constants ¶
View Source
const ( SrvUUID = 3184522100753325396 SrvName = "TestCallee" )
Variables ¶
View Source
var (
ServiceUUID uint64 = SrvUUID
)
Functions ¶
func TestCalleeProxyCreator ¶
func TestCalleeProxyCreator(trans transport.ITransport) idlrpc.IProxy
func TestCalleeStubCreator ¶
Types ¶
type AddCallBack ¶ added in v0.5.10
type DivideCallBack ¶ added in v0.5.10
type ITestCallee ¶
type SubCallBack ¶ added in v0.5.10
type SubPrivateCallBack ¶ added in v0.5.10
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 ¶
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
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)
Click to show internal directories.
Click to hide internal directories.