testcaller

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Generated by the go idl tools. DO NOT EDIT 2022-03-16 19:57:15 source: TestCaller

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

Index

Constants

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

Variables

This section is empty.

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 ITestCaller

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

type TestCallerImpl

type TestCallerImpl struct {
}

func NewTestCaller

func NewTestCaller() *TestCallerImpl

func (*TestCallerImpl) GetInfo

func (sp *TestCallerImpl) GetInfo(ctx context.Context) (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 context.Context) bool

func (*TestCallerImpl) OnBeforeDestroy

func (sp *TestCallerImpl) OnBeforeDestroy() bool

func (*TestCallerImpl) OnTick

func (sp *TestCallerImpl) OnTick() bool

func (*TestCallerImpl) SetInfo

func (sp *TestCallerImpl) SetInfo(ctx context.Context, _1 string) (err error)

type TestCallerProxy

type TestCallerProxy struct {
	idlrpc.ProxyBase
}

define stub.ProxyStub

func (*TestCallerProxy) GetInfo

func (sp *TestCallerProxy) GetInfo() (ret1 string, err error)

func (*TestCallerProxy) GetSignature

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

func (*TestCallerProxy) GetSrvName

func (sp *TestCallerProxy) GetSrvName() string

func (*TestCallerProxy) GetUUID

func (sp *TestCallerProxy) GetUUID() uint64

define function

func (*TestCallerProxy) IsOneWay

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

func (*TestCallerProxy) SetInfo

func (sp *TestCallerProxy) SetInfo(_1 string) (err 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 context.Context, methodId uint32, req []byte) (resp []byte, err error)

func (*TestCallerStub) GetInfo

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

func (*TestCallerStub) GetMutipleNum

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

func (*TestCallerStub) OnBeforeDestroy

func (sb *TestCallerStub) OnBeforeDestroy() bool

func (*TestCallerStub) OnTick

func (sb *TestCallerStub) OnTick() bool

func (*TestCallerStub) SetInfo

func (sb *TestCallerStub) SetInfo(ctx context.Context, 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