Documentation
¶
Index ¶
- func UpperFirstCharacter(str string) string
- type Definition
- type Message
- type Service
- func (s *Service) EmptyInput() bool
- func (s *Service) EmptyOutput() bool
- func (s *Service) HasArrayOutput() bool
- func (s *Service) HasArrayParams() bool
- func (s *Service) HasCustomOutput() bool
- func (s *Service) HasCustomParams() bool
- func (s *Service) InputGrpc() []string
- func (s *Service) MethodInputType() string
- func (s *Service) MethodOutputType() string
- func (s *Service) OutputGrpc() []string
- func (s *Service) ParamsCallDatabase() string
- func (s *Service) ProtoInputs() string
- func (s *Service) ProtoOutputs() string
- func (s *Service) ReturnCallDatabase() string
- func (s *Service) RpcSignature() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpperFirstCharacter ¶
Types ¶
type Definition ¶
type Definition struct {
Database string
Package string
GoModule string
SrcPath string
Services []*Service
Messages map[string]*Message
}
func ParseDefinition ¶
func ParseDefinition(src, engine, module string) (*Definition, error)
func (*Definition) ProtoImports ¶
func (d *Definition) ProtoImports() []string
type Message ¶
func (*Message) ProtoAttributes ¶
type Service ¶
type Service struct {
Name string
InputNames []string
InputTypes []string
Output []string
Messages map[string]*Message
}
func (*Service) EmptyInput ¶
func (*Service) EmptyOutput ¶
func (*Service) HasArrayOutput ¶
func (*Service) HasArrayParams ¶
func (*Service) HasCustomOutput ¶
func (*Service) HasCustomParams ¶
func (*Service) MethodInputType ¶
func (*Service) MethodOutputType ¶
func (*Service) OutputGrpc ¶
func (*Service) ParamsCallDatabase ¶
func (*Service) ProtoInputs ¶
func (*Service) ProtoOutputs ¶
func (*Service) ReturnCallDatabase ¶
func (*Service) RpcSignature ¶
Click to show internal directories.
Click to hide internal directories.