Module1

package
v0.0.0-...-63b2ac5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FuncId_hello uint32 = iota
)

Variables

View Source
var (
	Xbootargs = NewBootArgs()
)

Functions

func FuncCaller_hello

func FuncCaller_hello(head FuncServiceImpl.FuncHeader, reqbody []byte) (respHead FuncServiceImpl.FuncHeader, respBody []byte, err error)

func Start

func Start()

Types

type BootArgs

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

func NewBootArgs

func NewBootArgs() *BootArgs

type ModuleClient

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

func (*ModuleClient) FuncRequest

func (cli *ModuleClient) FuncRequest(funcli services.FuncServiceClient, funcId uint32, header FuncServiceImpl.FuncHeader, body []byte) (respHead FuncServiceImpl.FuncHeader, respBody []byte, err error)

func (*ModuleClient) ObtainFuncClientByCode

func (cli *ModuleClient) ObtainFuncClientByCode(serviceCode string) (services.FuncServiceClient, error)

type ModuleService

type ModuleService interface {
	Register(funcId uint32, caller FuncServiceImpl.Caller) error
}

type ModuleServiceImpl

type ModuleServiceImpl struct {
	ServiceId   uint32
	ServiceCode string

	Funcmap map[uint32]FuncServiceImpl.Caller
}

func NewModuleServiceImpl

func NewModuleServiceImpl() *ModuleServiceImpl

func (*ModuleServiceImpl) GetCaller

func (this *ModuleServiceImpl) GetCaller(funcId uint32) FuncServiceImpl.Caller

func (*ModuleServiceImpl) GetServiceCode

func (this *ModuleServiceImpl) GetServiceCode() string

func (*ModuleServiceImpl) GetServiceId

func (this *ModuleServiceImpl) GetServiceId() uint32

func (*ModuleServiceImpl) Register

func (this *ModuleServiceImpl) Register(funcId uint32, caller FuncServiceImpl.Caller) error

func (*ModuleServiceImpl) SupportVersion

func (this *ModuleServiceImpl) SupportVersion(version uint32) bool

Jump to

Keyboard shortcuts

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