reflection

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: Apache-2.0 Imports: 12 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MethodInfo

type MethodInfo struct {
	Name      string
	ReqName   string
	Req       string
	ReplyName string
	Reply     string
}

MethodInfo method info

type Reflection

type Reflection struct {
	Services map[string]*ServiceInfo
}

func New

func New() *Reflection

func (*Reflection) GetService

func (r *Reflection) GetService(ctx context.Context, s string, reply *string) error

func (*Reflection) GetServices

func (r *Reflection) GetServices(ctx context.Context, s string, reply *string) error

func (*Reflection) Register

func (r *Reflection) Register(name string, rcvr interface{}, metadata string) error

func (*Reflection) Unregister

func (r *Reflection) Unregister(name string) error

type ServiceInfo

type ServiceInfo struct {
	Name    string
	PkgPath string
	Methods []*MethodInfo
}

ServiceInfo service info.

func (ServiceInfo) String

func (si ServiceInfo) String() string

Jump to

Keyboard shortcuts

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