Documentation ¶
Index ¶
- type MethodInfo
- type Reflection
- func (r *Reflection) GetService(ctx context.Context, s string, reply *string) error
- func (r *Reflection) GetServices(ctx context.Context, s string, reply *string) error
- func (r *Reflection) Register(name string, rcvr interface{}, metadata string) error
- func (r *Reflection) Unregister(name string) error
- type ServiceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MethodInfo ¶
MethodInfo method info
type Reflection ¶
type Reflection struct {
Services map[string]*ServiceInfo
}
func New ¶
func New() *Reflection
func (*Reflection) GetService ¶
func (*Reflection) GetServices ¶
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
Click to show internal directories.
Click to hide internal directories.