Documentation ¶
Index ¶
- type Attribute
- type Cache
- type DB
- type Endpoint
- type Model
- type Repository
- type Service
- func (s *Service) Apply()
- func (s *Service) CheckForError() error
- func (s *Service) GetInterfaceName() string
- func (s *Service) GetServiceName() string
- func (s *Service) GetType(in string) string
- func (s *Service) GetVariableName(in string, private bool) string
- func (s *Service) HasKeys() bool
- func (s *Service) IsAddedType(typ string) bool
- func (s *Service) IsArray(typ string) bool
- func (s *Service) IsNativeType(typ string) bool
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
func (*Attribute) IsPrimaryKey ¶
type Cache ¶
type DB ¶
func (DB) GetAddress ¶
type Endpoint ¶
type Endpoint struct { Name string `yaml:"name"` Args []string `yaml:"args"` Output []string `yaml:"output"` CacheTime int `yaml:"cache_time"` Transport Transport `yaml:"transport"` }
func (*Endpoint) GetCacheTime ¶
func (*Endpoint) GetOutputs ¶
func (*Endpoint) GetTransport ¶
type Model ¶
type Model struct { Name string `yaml:"name"` StringAttributes []string `yaml:"attr"` Attributes []Attribute }
func (*Model) GetModelAttributes ¶
type Repository ¶
func (*Repository) GetDB ¶
func (r *Repository) GetDB() DB
type Service ¶
type Service struct { Name string `yaml:"name"` Endpoints []Endpoint `yaml:"endpoints"` Models []*Model `yaml:"model"` Repository Repository `yaml:"repository"` RedisCache Cache `yaml:"redis_cache"` Keys bool `yaml:"keys"` }
func (*Service) CheckForError ¶
func (*Service) GetInterfaceName ¶
func (*Service) GetServiceName ¶
func (*Service) IsAddedType ¶
func (*Service) IsNativeType ¶
Click to show internal directories.
Click to hide internal directories.