xserver

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = New()

Functions

func Close added in v0.0.5

func Close() (err error)

func Service added in v0.0.5

func Service(name string, handler ...interface{}) *registry.Service

func Start added in v0.0.5

func Start() (err error)

Types

type Caller added in v0.0.3

type Caller interface {
	Caller(c *server.Context, node *registry.Node) interface{}
}

Caller struct自带的Caller

type XServer

type XServer struct {
	*server.Server

	Binder   binder.Interface
	Registry *registry.Registry
	// contains filtered or unexported fields
}

func New added in v0.0.5

func New() *XServer

func (*XServer) Address added in v0.0.5

func (xs *XServer) Address() *utils.Address

func (*XServer) Close

func (xs *XServer) Close() (err error)

func (*XServer) Service

func (xs *XServer) Service(name string, handler ...interface{}) *registry.Service

func (*XServer) Start

func (xs *XServer) Start() (err error)

Jump to

Keyboard shortcuts

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