Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { GetProfile() string GetReadDsn() string GetWriteDsn() string GetPort() int }
func NewRepository ¶
func NewRepository() Repository
type RepositoryImpl ¶
func (*RepositoryImpl) GetPort ¶
func (r *RepositoryImpl) GetPort() int
func (*RepositoryImpl) GetProfile ¶
func (r *RepositoryImpl) GetProfile() string
func (*RepositoryImpl) GetReadDsn ¶
func (r *RepositoryImpl) GetReadDsn() string
func (*RepositoryImpl) GetWriteDsn ¶
func (r *RepositoryImpl) GetWriteDsn() string
type Service ¶
type Service struct { ConfigRepository Repository ReadDb *gorm.DB WriteDb *gorm.DB }
func NewService ¶
func NewService( cr Repository, ) *Service
func (*Service) GetProfile ¶
Click to show internal directories.
Click to hide internal directories.