Documentation ¶
Index ¶
- Constants
- Variables
- func FuncCaller_hello(head FuncServiceImpl.FuncHeader, reqbody []byte) (respHead FuncServiceImpl.FuncHeader, respBody []byte, err error)
- func Start()
- type BootArgs
- type ModuleClient
- type ModuleService
- type ModuleServiceImpl
- func (this *ModuleServiceImpl) GetCaller(funcId uint32) FuncServiceImpl.Caller
- func (this *ModuleServiceImpl) GetServiceCode() string
- func (this *ModuleServiceImpl) GetServiceId() uint32
- func (this *ModuleServiceImpl) Register(funcId uint32, caller FuncServiceImpl.Caller) error
- func (this *ModuleServiceImpl) SupportVersion(version uint32) bool
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)
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
Click to show internal directories.
Click to hide internal directories.