reflect

package
v0.0.0-...-f952efe Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientReflect

type ClientReflect struct {
	Conn *grpc.ClientConn
}

func NewClientReflect

func NewClientReflect(c *grpc.ClientConn) *ClientReflect

NewClientReflect create new ClientReflect

func (*ClientReflect) ListServices

func (cr *ClientReflect) ListServices() ([]string, error)

LisServices list all gRPC services

type Reflector

type Reflector interface {
	ListServices() ([]string, error)
}

type ServerReflect

type ServerReflect struct {
	// contains filtered or unexported fields
}

func NewServerReflect

func NewServerReflect(svr *grpc.Server) *ServerReflect

NewServerReflect create ServerReflect

func (*ServerReflect) ListServices

func (sr *ServerReflect) ListServices() ([]string, error)

LisServices list all gRPC services

Jump to

Keyboard shortcuts

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