protobuf

package
v0.0.0-...-8ca6fb7 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertValue

func ConvertValue(pv string, field entity.PrimitiveField) (interface{}, error)

ConvertValue holds value and error of conversion each cast (Parse*) returns falsy value when failed to parse argument

func ToEntitiesFrom

func ToEntitiesFrom(files []*desc.FileDescriptor) ([]*entity.Package, error)

ToEntitiesFrom normalizes descriptors to entities

package - messages - enums - services

  • rpcs

func ToEntitiesFromServiceDescriptors

func ToEntitiesFromServiceDescriptors(services []*desc.ServiceDescriptor) []entity.Service

ToEntitiesFromServiceDescriptors normalizes service descriptors to entities. this API is called if the target server has enabled gRPC reflection. reflection service returns available services, so Evans needs to convert to entities from service descriptors, not file descriptors.

Types

type DynamicBuilder

type DynamicBuilder struct{}

func NewDynamicBuilder

func NewDynamicBuilder() *DynamicBuilder

func (*DynamicBuilder) NewMessage

func (b *DynamicBuilder) NewMessage(m entity.Message) proto.Message

type MessageSetter

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

func NewMessageSetter

func NewMessageSetter(m entity.Message) *MessageSetter

func (*MessageSetter) Done

func (s *MessageSetter) Done() proto.Message

func (*MessageSetter) SetField

func (s *MessageSetter) SetField(f entity.Field, v interface{}) error

type Service

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

func (*Service) FQRN

func (s *Service) FQRN() string

func (*Service) Name

func (s *Service) Name() string

func (*Service) RPCs

func (s *Service) RPCs() []entity.RPC

Jump to

Keyboard shortcuts

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