Documentation ¶
Index ¶
- type ServiceOptions
- func WithCacheManager(cache contract.CacheManager) ServiceOptions
- func WithConfig(cfg *config.Config) ServiceOptions
- func WithCrypto(crypto contract.Crypto) ServiceOptions
- func WithDataManager(dm contract.DataManager) ServiceOptions
- func WithLogger(log logger.Logger) ServiceOptions
- func WithValidator(v validator.Validator) ServiceOptions
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceOptions ¶
type ServiceOptions func(*service)
func WithCacheManager ¶
func WithCacheManager(cache contract.CacheManager) ServiceOptions
func WithConfig ¶
func WithConfig(cfg *config.Config) ServiceOptions
func WithCrypto ¶
func WithCrypto(crypto contract.Crypto) ServiceOptions
func WithDataManager ¶
func WithDataManager(dm contract.DataManager) ServiceOptions
func WithLogger ¶
func WithLogger(log logger.Logger) ServiceOptions
func WithValidator ¶
func WithValidator(v validator.Validator) ServiceOptions
type Services ¶
type Services struct { AccountService contract.AccountService AuthService contract.AuthService TransferService contract.TransferService }
func New ¶
func New(svcOptions ...ServiceOptions) (*Services, error)
New to get instance of all services
Click to show internal directories.
Click to hide internal directories.