reflection

package
v0.0.0-...-4135b7a Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

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