rpc_service

package
v0.0.0-...-278a4e6 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 8

Documentation

Index

Constants

View Source
const Name = "rpc-service"

Variables

This section is empty.

Functions

func GetImpl

func GetImpl(key string) (interface{}, error)

func GetImplWithProxy

func GetImplWithProxy(key string) (interface{}, error)

func RegisterStructDescriptor

func RegisterStructDescriptor(s *autowire.StructDescriptor)

func SetParam

func SetParam(param *Param)

Types

type Autowire

type Autowire struct {
	autowire.Autowire
}

func (*Autowire) CanBeEntrance

func (a *Autowire) CanBeEntrance() bool

func (*Autowire) GetAllStructDescriptors

func (a *Autowire) GetAllStructDescriptors() map[string]*autowire.StructDescriptor

GetAllStructDescriptors re-write SingletonAutowire

func (*Autowire) TagKey

func (a *Autowire) TagKey() string

type Param

type Param struct {
	ExportPort string
}

type ProxyInvoker

type ProxyInvoker struct {
	protocol.BaseInvoker
}

ProxyInvoker is a invoker struct

func (*ProxyInvoker) Invoke

func (pi *ProxyInvoker) Invoke(ctx context.Context, invocation protocol.Invocation) protocol.Result

Invoke is used to call service method by invocation

Jump to

Keyboard shortcuts

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