rpcx: github.com/smallnest/rpcx/reflection Index | Files

package reflection

import "github.com/smallnest/rpcx/reflection"

Index

Package Files

server_reflection.go

type MethodInfo Uses

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

MethodInfo method info

type Reflection Uses

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

func New Uses

func New() *Reflection

func (*Reflection) GetService Uses

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

func (*Reflection) GetServices Uses

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

func (*Reflection) Register Uses

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

func (*Reflection) Unregister Uses

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

type ServiceInfo Uses

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

ServiceInfo service info.

func (ServiceInfo) String Uses

func (si ServiceInfo) String() string

Package reflection imports 12 packages (graph) and is imported by 2 packages. Updated 2020-08-12. Refresh now. Tools for package owners.