descriptor

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageDesc

type MessageDesc struct {
	Name       string
	Fields     []FieldDesc
	MapEntry   bool
	Incomplete bool
}

type MethodDesc

type MethodDesc struct {
	Name      string
	In        *MessageDesc
	Out       *MessageDesc
	Streaming bool
	Opts      MethodOptions
}

type MethodOptions

type MethodOptions struct {
	Method  string
	Path    string
	Use     []string
	Timeout int64
	Handler string
}

type Parser

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

func NewParser

func NewParser() *Parser

func (*Parser) AddFile

func (p *Parser) AddFile(fd *descriptorpb.FileDescriptorProto) error

func (*Parser) GetMessage

func (p *Parser) GetMessage(name string) *MessageDesc

func (*Parser) Services

func (p *Parser) Services() []*ServiceDesc

type ServiceDesc

type ServiceDesc struct {
	Name     string
	FullName string
	Methods  []*MethodDesc
	Opts     ServiceOptions
}

type ServiceOptions

type ServiceOptions struct {
	Server         string
	DefaultHandler string
	DefaultTimeout int64
	PathPrefix     string
	Use            []string
}

Jump to

Keyboard shortcuts

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