manager

package
v0.0.0-...-da789b0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProtoForMethod

func GetProtoForMethod(packageName, serviceName string, method protoreflect.MethodDescriptor) (string, error)

func PrintBuilder

func PrintBuilder(b builder.Builder) (string, error)

func PrintEnum

func PrintEnum(enumType protoreflect.EnumDescriptor) (string, error)

func PrintFile

func PrintFile(msgType *desc.FileDescriptor) (string, error)

func PrintMessage

func PrintMessage(msgType protoreflect.MessageDescriptor) (string, error)

Types

type Options

type Options func(*ReflectionManager)

func WithProtocol

func WithProtocol(protocol bufcurl.ReflectProtocol) Options

type ReflectionManager

type ReflectionManager struct {
	URL      string
	Protocol string
	Headers  []string
	// contains filtered or unexported fields
}

func NewReflectionManager

func NewReflectionManager(url string, ops ...Options) *ReflectionManager

func (*ReflectionManager) ExecuteMethod

func (s *ReflectionManager) ExecuteMethod(
	ctx context.Context,
	method protoreflect.MethodDescriptor,
	input rxgo.Observable,
	output rx.ItemSink,
) (err error)

func (*ReflectionManager) Init

func (s *ReflectionManager) Init() (func(), error)

func (*ReflectionManager) ResolveMethod

func (s *ReflectionManager) ResolveMethod(service, methodName string) (protoreflect.MethodDescriptor, error)

func (*ReflectionManager) ResolveService

func (s *ReflectionManager) ResolveService(service string) (protoreflect.ServiceDescriptor, error)

func (*ReflectionManager) ResolveServices

func (s *ReflectionManager) ResolveServices() ([]protoreflect.ServiceDescriptor, error)

type ReflectionOptions

type ReflectionOptions struct {
	Protocol bufcurl.ReflectProtocol
	Headers  []string
}

Jump to

Keyboard shortcuts

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