gateway

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInvoker

func NewInvoker(opt *option.GatewayOption) types.Plugin

Types

type HproseGateway

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

func NewGateway

func NewGateway(o ...func(*option.GatewayOption)) *HproseGateway

func NewGatewayWith

func NewGatewayWith(opt *option.GatewayOption) *HproseGateway

func (*HproseGateway) Invoke

func (g *HproseGateway) Invoke(name string, args []reflect.Value, context rpc.Context) ([]reflect.Value, error)

type HproseTable

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

func NewTable

func NewTable(key string) *HproseTable

func (*HproseTable) Close

func (t *HproseTable) Close() error

func (*HproseTable) Pipe

func (t *HproseTable) Pipe(w io.Writer)

func (*HproseTable) Pop

func (t *HproseTable) Pop() ([]types.Update, error)

func (*HproseTable) Push

func (t *HproseTable) Push(updates []types.Update) error

type Invoker

type Invoker option.GatewayOption

func (*Invoker) Close

func (i *Invoker) Close() error

func (*Invoker) Handler

func (i *Invoker) Handler(_ types.InvokeHandler, ctx context.Context, method string, args []reflect.Value) ([]reflect.Value, error)

func (*Invoker) Level

func (i *Invoker) Level() int

func (*Invoker) Name

func (i *Invoker) Name() string

Source Files

  • gateway.go
  • invoker.go
  • table.go

Jump to

Keyboard shortcuts

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