Documentation ¶
Index ¶
- type Repository
- type RepositoryImpl
- func (r *RepositoryImpl) GetAuthxHost() string
- func (r *RepositoryImpl) GetAuthxPort() int
- func (r *RepositoryImpl) GetOrgHost() string
- func (r *RepositoryImpl) GetOrgPort() int
- func (r *RepositoryImpl) GetPort() int
- func (r *RepositoryImpl) GetProfile() string
- func (r *RepositoryImpl) GetReadDsn() string
- func (r *RepositoryImpl) GetWriteDsn() string
- type Service
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 GetAuthxHost() string GetAuthxPort() int GetOrgHost() string GetOrgPort() int }
func NewRepository ¶
func NewRepository() Repository
type RepositoryImpl ¶
type RepositoryImpl struct { Profile string ReadDsn string WriteDsn string Port int AuthxHost string AuthxPort int OrgHost string OrgPort int }
func (*RepositoryImpl) GetAuthxHost ¶
func (r *RepositoryImpl) GetAuthxHost() string
func (*RepositoryImpl) GetAuthxPort ¶
func (r *RepositoryImpl) GetAuthxPort() int
func (*RepositoryImpl) GetOrgHost ¶
func (r *RepositoryImpl) GetOrgHost() string
func (*RepositoryImpl) GetOrgPort ¶
func (r *RepositoryImpl) GetOrgPort() int
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.