metadata

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 10 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OriginalAndElementType added in v0.3.0

func OriginalAndElementType(typ string) (original, element string)

func ToSnakeCase added in v0.3.0

func ToSnakeCase(str string) string

func UpperFirstCharacter

func UpperFirstCharacter(str string) string

Types

type Definition

type Definition struct {
	GoModule string
	Packages []*Package
}

func (*Definition) Database

func (d *Definition) Database() string

type Message

type Message struct {
	Name        string
	AttrNames   []string
	AttrTypes   []string
	IsArray     bool
	ElementType string
}

func (*Message) AdapterToGo added in v0.5.0

func (m *Message) AdapterToGo(src, dst string) []string

func (*Message) AdapterToProto added in v0.5.0

func (m *Message) AdapterToProto(src, dst string) []string

func (*Message) HasComplexAttribute added in v0.2.0

func (m *Message) HasComplexAttribute() bool

func (*Message) ProtoAttributes

func (m *Message) ProtoAttributes() string

type Package added in v0.1.0

type Package struct {
	Engine         string
	Package        string
	GoModule       string
	SchemaPath     string
	SrcPath        string
	Services       []*Service
	Messages       map[string]*Message
	InputAdapters  []*Message
	OutputAdapters []*Message
}

func ParsePackage added in v0.1.0

func ParsePackage(src string) (*Package, error)

func (*Package) ProtoImports added in v0.1.0

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

type Service

type Service struct {
	Name       string
	InputNames []string
	InputTypes []string
	Output     []string
	Sql        string
	Messages   map[string]*Message
}

func (*Service) EmptyInput

func (s *Service) EmptyInput() bool

func (*Service) EmptyOutput

func (s *Service) EmptyOutput() bool

func (*Service) HasArrayOutput

func (s *Service) HasArrayOutput() bool

func (*Service) HasArrayParams

func (s *Service) HasArrayParams() bool

func (*Service) HasCustomOutput

func (s *Service) HasCustomOutput() bool

func (*Service) HasCustomParams

func (s *Service) HasCustomParams() bool

func (*Service) HasSimpleParams added in v0.2.0

func (s *Service) HasSimpleParams() bool

func (*Service) HttpBody added in v0.2.0

func (s *Service) HttpBody() string

func (*Service) HttpMethod added in v0.2.0

func (s *Service) HttpMethod() string

func (*Service) HttpOptions added in v0.2.0

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

func (*Service) HttpPath added in v0.2.0

func (s *Service) HttpPath() string

func (*Service) HttpResponseBody added in v0.2.0

func (s *Service) HttpResponseBody() string

func (*Service) InputGrpc

func (s *Service) InputGrpc() []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) ParamsCallDatabase

func (s *Service) ParamsCallDatabase() string

func (*Service) ProtoInputs

func (s *Service) ProtoInputs() string

func (*Service) ProtoOutputs

func (s *Service) ProtoOutputs() string

func (*Service) ReturnCallDatabase

func (s *Service) ReturnCallDatabase() string

func (*Service) RpcSignature

func (s *Service) RpcSignature() string

Jump to

Keyboard shortcuts

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