Documentation ¶
Index ¶
- func ToPascalCase(str string) string
- func ToSnakeCase(str string) string
- func UpperFirstCharacter(str string) string
- type Definition
- type Message
- type Package
- type Service
- func (s *Service) EmptyInput() bool
- func (s *Service) EmptyOutput() bool
- func (s *Service) HasCustomOutput() bool
- func (s *Service) HasCustomParams() bool
- func (s *Service) HttpOptions() []string
- func (s *Service) InputGrpc() []string
- func (s *Service) InputParams(prefix string) string
- func (s *Service) LocationURIPattern() string
- func (s *Service) MethodInputType() string
- func (s *Service) MethodOutputType() string
- func (s *Service) OutputGrpc() []string
- func (s *Service) PKEntityParams(prefix string) string
- func (s *Service) PKJoin(sep string) string
- func (s *Service) PKParams(prefix string) string
- func (s *Service) ParamsCallDatabase() string
- func (s *Service) ProtoInputs() string
- func (s *Service) ProtoOutputs() string
- func (s *Service) ReaderEntity() *Service
- func (s *Service) RelationshipMethod() bool
- func (s *Service) ReturnCallDatabase() string
- func (s *Service) RpcSignature() string
- func (s *Service) SimplePK() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToPascalCase ¶ added in v0.7.1
func ToSnakeCase ¶
func UpperFirstCharacter ¶
Types ¶
type Definition ¶
type Definition struct { GoModule string DatabaseDriverModule string DatabaseDriverName string ModelsPath string Packages []*Package }
func (*Definition) Messages ¶
func (d *Definition) Messages() map[string]*Message
func (*Definition) ProtoImports ¶
func (d *Definition) ProtoImports() []string
type Message ¶
type Message struct { Name string PkNames []string IndexNames map[string]struct{} AttrNames []string AttrTypes []string IsArray bool ElementType string HasTextUnmarshaler bool HasParser bool ReaderService *Service }
func (*Message) ProtoAttributes ¶
type Package ¶
type Package struct { Package string GoModule string SrcPath string SrcPackage string Services []*Service Messages map[string]*Message }
func ParsePackages ¶
func (*Package) ProtoImports ¶
type Service ¶
type Service struct { Owner string Name string InputNames []string InputTypes []string Output []string IsMethod bool InputMethodNames []string InputMethodTypes []string HasContext bool Messages map[string]*Message }
func (*Service) EmptyInput ¶
func (*Service) EmptyOutput ¶
func (*Service) HasCustomOutput ¶
func (*Service) HasCustomParams ¶
func (*Service) HttpOptions ¶ added in v0.2.0
func (*Service) InputParams ¶ added in v0.2.10
func (*Service) LocationURIPattern ¶ added in v0.2.9
func (*Service) MethodInputType ¶
func (*Service) MethodOutputType ¶
func (*Service) OutputGrpc ¶
func (*Service) PKEntityParams ¶ added in v0.2.10
func (*Service) ParamsCallDatabase ¶
func (*Service) ProtoInputs ¶
func (*Service) ProtoOutputs ¶
func (*Service) ReaderEntity ¶ added in v0.2.10
func (*Service) RelationshipMethod ¶ added in v0.2.8
func (*Service) ReturnCallDatabase ¶
func (*Service) RpcSignature ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.