config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	GetPort() int
	GetMigrationSource() string
	GetDbUser() string
	GetDbPassword() string
	GetDbHost() string
	GetDbPort() int
	GetDbName() string
}

Store encapsulates configuration properties to be injected

type StoreImpl

type StoreImpl struct {
	// contains filtered or unexported fields
}

StoreImpl implements store

func NewStoreImpl

func NewStoreImpl(source goConfig.Source) (*StoreImpl, error)

NewStoreImpl is a constructor

func (*StoreImpl) GetDbHost added in v0.2.0

func (s *StoreImpl) GetDbHost() string

GetDbHost returns the database host

func (*StoreImpl) GetDbName added in v0.2.0

func (s *StoreImpl) GetDbName() string

GetDbName returns the database name

func (*StoreImpl) GetDbPassword added in v0.2.0

func (s *StoreImpl) GetDbPassword() string

GetDbPassword returns the database password

func (*StoreImpl) GetDbPort added in v0.2.0

func (s *StoreImpl) GetDbPort() int

GetDbPort returns the database port

func (*StoreImpl) GetDbUser added in v0.2.0

func (s *StoreImpl) GetDbUser() string

GetDbUser returns the database user

func (*StoreImpl) GetMigrationSource

func (s *StoreImpl) GetMigrationSource() string

GetMigrationSource returns the source for database migrations to run

func (*StoreImpl) GetPort

func (s *StoreImpl) GetPort() int

GetPort returns the configured port for the server

Jump to

Keyboard shortcuts

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