handler

package
v0.0.0-...-799f385 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandlerFormater

func NewHandlerFormater() api.IAPIFormater

Types

type HandlerFormater

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

func (*HandlerFormater) IsValidMethod

func (self *HandlerFormater) IsValidMethod(method reflect.Method) bool

func (*HandlerFormater) MakeCallArgs

func (self *HandlerFormater) MakeCallArgs(receiver reflect.Value, args reflect.Value,
	cbFunc reflect.Value, ext interface{}) []reflect.Value

func (*HandlerFormater) MakeHandlerSession

func (self *HandlerFormater) MakeHandlerSession(from interface{}) api.IHandlerSession

func (*HandlerFormater) NeedSession

func (self *HandlerFormater) NeedSession() bool

type HandlerNode

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

func NewHandlerNode

func NewHandlerNode() *HandlerNode

func (*HandlerNode) Call

func (self *HandlerNode) Call(session api.IHandlerSession, method string, msg []byte, cbFunc api.HandlerCBFunc)

func (*HandlerNode) GetCollection

func (self *HandlerNode) GetCollection() *api.APICollection

func (*HandlerNode) Init

func (self *HandlerNode) Init()

设置合适的formater

func (*HandlerNode) Start

func (self *HandlerNode) Start()

Jump to

Keyboard shortcuts

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