metadata

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToPascalCase added in v0.7.1

func ToPascalCase(str string) string

func ToSnakeCase

func ToSnakeCase(str string) string

func UpperFirstCharacter

func UpperFirstCharacter(str string) string

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

func (m *Message) ProtoAttributes() string

type Package

type Package struct {
	Package    string
	GoModule   string
	SrcPath    string
	SrcPackage string
	Services   []*Service
	Messages   map[string]*Message
}

func ParsePackages

func ParsePackages(src, module string) ([]*Package, error)

func (*Package) ProtoImports

func (p *Package) ProtoImports() []string

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 (s *Service) EmptyInput() bool

func (*Service) EmptyOutput

func (s *Service) EmptyOutput() bool

func (*Service) HasCustomOutput

func (s *Service) HasCustomOutput() bool

func (*Service) HasCustomParams

func (s *Service) HasCustomParams() bool

func (*Service) HttpOptions added in v0.2.0

func (s *Service) HttpOptions() []string

func (*Service) InputGrpc

func (s *Service) InputGrpc() []string

func (*Service) InputParams added in v0.2.10

func (s *Service) InputParams(prefix string) string

func (*Service) LocationURIPattern added in v0.2.9

func (s *Service) LocationURIPattern() string

func (*Service) MethodInputType

func (s *Service) MethodInputType() string

func (*Service) MethodOutputType

func (s *Service) MethodOutputType() string

func (*Service) OutputGrpc

func (s *Service) OutputGrpc() []string

func (*Service) PKEntityParams added in v0.2.10

func (s *Service) PKEntityParams(prefix string) string

func (*Service) PKJoin added in v0.2.3

func (s *Service) PKJoin(sep string) string

func (*Service) PKParams added in v0.2.3

func (s *Service) PKParams(prefix string) string

func (*Service) ParamsCallDatabase

func (s *Service) ParamsCallDatabase() string

func (*Service) ProtoInputs

func (s *Service) ProtoInputs() string

func (*Service) ProtoOutputs

func (s *Service) ProtoOutputs() string

func (*Service) ReaderEntity added in v0.2.10

func (s *Service) ReaderEntity() *Service

func (*Service) RelationshipMethod added in v0.2.8

func (s *Service) RelationshipMethod() bool

func (*Service) ReturnCallDatabase

func (s *Service) ReturnCallDatabase() string

func (*Service) RpcSignature

func (s *Service) RpcSignature() string

func (*Service) SimplePK added in v0.2.1

func (s *Service) SimplePK() string

Jump to

Keyboard shortcuts

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