metadata

package
v0.1.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	api.UnimplementedMetadataServer
	// contains filtered or unexported fields
}

Server is api meta server

func NewServer

func NewServer(grpcSrv ...*grpc.Server) *Server

NewServer create server instance

func (*Server) GetServiceMeta

func (s *Server) GetServiceMeta(ctx context.Context, in *api.GetServiceMetaRequest) (*api.GetServiceMetaReply, error)

GetServiceMeta return service meta by name

func (*Server) ListServices

func (s *Server) ListServices(ctx context.Context, in *anypb.Any) (*api.ListServicesReply, error)

ListServices return all services

type Service

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

Service is description service

func NewService

func NewService(grpcSrv ...*grpc.Server) *Service

NewService create desc Service

func (*Service) GetServiceMeta

func (s *Service) GetServiceMeta(ctx context.Context, name string) (fds *descriptorpb.FileDescriptorSet, err error)

GetServiceMeta get the full fileDescriptorSet of service

func (*Service) ListServices

func (s *Service) ListServices(ctx context.Context) (services []string, err error)

ListServices list the full name of all services

Jump to

Keyboard shortcuts

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