reflection

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeMethod

func NormalizeMethod(method []byte) []byte

NormalizeMethod - приводит метод к стандартному виду '/package.Service/Call' из 'package.Service.Call'.

Types

type CachedFetcher

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

func NewCachedFetcher

func NewCachedFetcher(next Fetcher) *CachedFetcher

func (*CachedFetcher) Fetch

type DynamicMessagesStore

type DynamicMessagesStore interface {
	// must return nil if not found
	Get(methodName []byte) (message *dynamic.Message, release func())
}

func NewDynamicMessagesStore

func NewDynamicMessagesStore(descriptors []*desc.MethodDescriptor) DynamicMessagesStore

type ErrFetcher

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

func NewErrFetcher

func NewErrFetcher(err error) *ErrFetcher

func (*ErrFetcher) Fetch

type Fetcher

type Fetcher interface {
	Fetch(ctx context.Context) (DynamicMessagesStore, error)
}

type LocalFetcher

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

func NewLocalFetcher

func NewLocalFetcher(filenames, importPaths []string) LocalFetcher

func (LocalFetcher) Fetch

type RemoteFetcher

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

func NewRemoteFetcher

func NewRemoteFetcher(conn *grpc.ClientConn) *RemoteFetcher

func (*RemoteFetcher) Fetch

func (*RemoteFetcher) Warnings

func (f *RemoteFetcher) Warnings() []string

type WarnLogger

type WarnLogger interface {
	Println(string)
}

Jump to

Keyboard shortcuts

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