env

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuth1Client

func NewAuth1Client(params AuthParams) (auth1.ServiceClient, error)

func NewCurrencyRatesServiceClient

func NewCurrencyRatesServiceClient(cfg *config.Config) (proto.CurrencyRatesServiceClient, error)

func NewMailConfig

func NewMailConfig(cfg *config.Config) *config.MailConf

func NewStoolClient

func NewStoolClient(cfg *config.Config, lifecycle fx.Lifecycle) (stoolint.StoolInternalClient, error)

Types

type AuthParams

type AuthParams struct {
	fx.In

	Cfg       *config.Config
	Lifecycle fx.Lifecycle
}

type Env

type Env struct {
	App      *app.App
	Auth     *auth.Auth
	Store    *Store
	Rabbit   *rabbitmq.Connection
	Storage  *storage.Env
	Postmark *postmark.Client
}

func New

func New(cfg *config.Config, transactor *transactor.Transactor) (*Env, error)

type Postgres

type Postgres struct {
	Handler    sql.Handler
	Connection *pg.DB
}

type Redis

type Redis struct {
	Client *redis.Client
}

type Store

type Store struct {
	Postgres *Postgres
	Redis    *Redis
}

Directories

Path Synopsis
migration

Jump to

Keyboard shortcuts

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