Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpServerDemo ¶
func NewHttpServerDemo(addr string)
Types ¶
type Controller ¶
type Controller func(request *simpleHttp.Request, response *simpleHttp.Response)
type HttpServerDemo ¶
type HttpServerDemo struct {
// contains filtered or unexported fields
}
func (*HttpServerDemo) AddController ¶
func (h *HttpServerDemo) AddController(path string, controller Controller)
func (*HttpServerDemo) Input ¶
func (h *HttpServerDemo) Input(context *event.HandleContext, request *simpleHttp.Request) (any, bool)
func (*HttpServerDemo) Start ¶
func (h *HttpServerDemo) Start()
type RpcClient ¶ added in v1.2.0
type RpcClient struct {
// contains filtered or unexported fields
}
func NewRpcClient ¶ added in v1.2.0
type RpcServer ¶ added in v1.2.0
type RpcServer struct {
// contains filtered or unexported fields
}
func NewRpcServer ¶ added in v1.2.0
type SimpleHttpClient ¶
type SimpleHttpClient struct {
// contains filtered or unexported fields
}
func NewSimpleHttpClient ¶
func NewSimpleHttpClient() *SimpleHttpClient
func (*SimpleHttpClient) Get ¶ added in v1.2.0
func (s *SimpleHttpClient) Get(url string) (*simpleHttp.Response, error)
func (*SimpleHttpClient) Input ¶
func (s *SimpleHttpClient) Input(_ *event.HandleContext, response *simpleHttp.Response) (any, bool)
Click to show internal directories.
Click to hide internal directories.