config

package
v0.0.0-...-e1a70cd Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 6 Imported by: 0

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
	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) GetPort

func (s *Service) GetPort() int

func (*Service) GetProfile

func (s *Service) GetProfile() string

Jump to

Keyboard shortcuts

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