Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *StoreConfig) *Store
func (*Store) User ¶
func (s *Store) User() *UserRepository
type StoreConfig ¶
type StoreConfig struct { DBParams string DBURL string DBHostname string `toml:"db_hostname"` DBPort int `toml:"db_port"` DBName string `toml:"db_name"` DBUsername string `toml:"db_user"` DBPassword string `toml:"db_pass"` DBSSLMode bool `toml:"db_sslmode"` LogLevel string `toml:"log_level"` }
func NewConfig ¶
func NewConfig() *StoreConfig
func ReadConfig ¶
func ReadConfig(path string) *StoreConfig
func (*StoreConfig) BuildDBComplexFields ¶
func (c *StoreConfig) BuildDBComplexFields()
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func (*UserRepository) FindByTelegramID ¶
func (r *UserRepository) FindByTelegramID(id int) (*models.User, error)
Click to show internal directories.
Click to hide internal directories.