Documentation
¶
Index ¶
- func ToPascalCase(str string) string
- func ToSnakeCase(str string) string
- func UpperFirstCharacter(str string) string
- type Definition
- type Field
- type Message
- type Package
- type PackageOpts
- 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) HasSimpleParams() bool
- func (s *Service) InputGrpc() []string
- func (s *Service) OutputGrpc() []string
- func (s *Service) ParamsCallDatabase() string
- func (s *Service) ProtoOutputs() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToPascalCase ¶ added in v0.1.5
func ToSnakeCase ¶
func UpperFirstCharacter ¶
Types ¶
type Definition ¶
func (*Definition) Database ¶
func (d *Definition) Database() string
type Field ¶
type Message ¶
type Message struct {
Name string
Fields []*Field
IsArray bool
ElementType string
CustomProtoComments []string
CustomProtoOptions []string
}
func (*Message) AdapterToGo ¶
func (*Message) AdapterToProto ¶
func (*Message) HasComplexAttribute ¶
func (*Message) ProtoAttributes ¶
type Package ¶
type Package struct {
Engine string
Package string
GoModule string
SchemaPath string
SrcPath string
Services []*Service
Messages map[string]*Message
OutputAdapters []*Message
EmitInterface bool
EmitParamsPointers bool
EmitResultPointers bool
EmitDbArgument bool
CustomProtoOptions []string
CustomProtoImports []string
CustomServiceProtoComments []string
CustomServiceProtoOptions []string
HasExecResult bool
}
func ParsePackage ¶
func ParsePackage(opts PackageOpts, queriesToIgnore []*regexp.Regexp) (*Package, error)
func (*Package) LoadOptions ¶
func (*Package) ProtoImports ¶
type PackageOpts ¶
type Service ¶
type Service struct {
Name string
InputNames []string
InputTypes []string
Output string
Sql string
Messages map[string]*Message
CustomProtoComments []string
CustomProtoOptions []string
}
func (*Service) EmptyInput ¶
func (*Service) EmptyOutput ¶
func (*Service) HasArrayOutput ¶
func (*Service) HasArrayParams ¶
func (*Service) HasCustomOutput ¶
func (*Service) HasCustomParams ¶
func (*Service) HasSimpleParams ¶
func (*Service) OutputGrpc ¶
func (*Service) ParamsCallDatabase ¶
func (*Service) ProtoOutputs ¶
Click to show internal directories.
Click to hide internal directories.