protobuf

package
v0.0.0-...-55db854 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: MIT Imports: 8 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 NewDynamicMessage

func NewDynamicMessage(msg entity.Message) proto.Message

NewDynamicMessage is used from DynamicBuilder for extract *desc.MessageDescriptor from msg

func ToEntitiesFrom

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

ToEntitiesFrom normalizes descriptors to entities

package ├ messages ├ enums └ services

└ rpcs

Types

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(field 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