parser

package
v0.0.0-...-e246948 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandStringRunes

func RandStringRunes(n int) string

Types

type FieldDesc

type FieldDesc struct {
	Name      string
	FullName  string
	JsonDesc  string
	ProtoDesc string
	RawDesc   *desc.MessageDescriptor
}

type Message

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

func NewMessage

func NewMessage(msg *desc.MessageDescriptor, randDefault bool) *Message

func (*Message) FindFieldDescriptor

func (m *Message) FindFieldDescriptor(tagNumber int32) *desc.FieldDescriptor

func (*Message) MarshalJSONPB

func (m *Message) MarshalJSONPB(opts *jsonpb.Marshaler) ([]byte, error)

type MethodDesc

type MethodDesc struct {
	Name      string
	FullName  string
	ProtoDesc string
	In        FieldDesc
	Out       FieldDesc
}

type ServiceDesc

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

func Parser

func Parser(cc grpc.ClientConnInterface) ([]ServiceDesc, error)

Jump to

Keyboard shortcuts

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