testcallee

package
v0.4.23 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Generated by the go idl tools. DO NOT EDIT 2022-11-30 17:54:45 source: TestCallee

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

Index

Constants

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

Variables

This section is empty.

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 ITestCallee

type ITestCallee interface {
	idlrpc.IService
	Add(context.Context, int32, int32) (int32, error)
	Sub(context.Context, int32, int32) (int32, error)
}

type TestCalleeImpl

type TestCalleeImpl struct {
}

func NewTestCallee

func NewTestCallee() *TestCalleeImpl

func (*TestCalleeImpl) Add

func (sp *TestCalleeImpl) Add(ctx context.Context, _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 context.Context) bool

func (*TestCalleeImpl) OnBeforeDestroy

func (sp *TestCalleeImpl) OnBeforeDestroy() bool

func (*TestCalleeImpl) OnTick

func (sp *TestCalleeImpl) OnTick() bool

func (*TestCalleeImpl) Sub

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

type TestCalleeProxy

type TestCalleeProxy struct {
	idlrpc.ProxyBase
}

define stub.ProxyStub

func (*TestCalleeProxy) Add

func (sp *TestCalleeProxy) Add(_1 int32, _2 int32) (ret1 int32, err error)

func (*TestCalleeProxy) GetSignature

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

func (*TestCalleeProxy) GetSrvName

func (sp *TestCalleeProxy) GetSrvName() string

func (*TestCalleeProxy) GetUUID

func (sp *TestCalleeProxy) GetUUID() uint64

define function

func (*TestCalleeProxy) IsOneWay

func (sp *TestCalleeProxy) IsOneWay(methodid uint32) (isoneway bool)

func (*TestCalleeProxy) Sub

func (sp *TestCalleeProxy) Sub(_1 int32, _2 int32) (ret1 int32, err 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 context.Context, req []byte) (resp []byte, err error)

func (*TestCalleeStub) Call

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

func (*TestCalleeStub) GetMutipleNum

func (sb *TestCalleeStub) GetMutipleNum() 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) 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 context.Context) bool

func (*TestCalleeStub) OnBeforeDestroy

func (sb *TestCalleeStub) OnBeforeDestroy() bool

func (*TestCalleeStub) OnTick

func (sb *TestCalleeStub) OnTick() bool

func (*TestCalleeStub) SetStatus

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

func (*TestCalleeStub) Sub

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

Jump to

Keyboard shortcuts

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