server

package
v0.8.30 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configuration added in v0.8.25

func Configuration() *typgo.Configuration

Configuration of server

func Disconnect added in v0.8.28

func Disconnect(p InfraParams) (err error)

Disconnect from postgres server @dtor

func Main added in v0.8.25

func Main(s server) (err error)

Main function to run server

Types

type InfraConfigs added in v0.8.28

type InfraConfigs struct {
	dig.In
	Pg    *typpg.Config
	Redis *typredis.Config
}

InfraConfigs is config collection

type InfraParams added in v0.8.28

type InfraParams struct {
	dig.In
	Pg    *sql.DB
	Redis *redis.Client
}

InfraParams is infra as parameter

type Infras added in v0.8.28

type Infras struct {
	dig.Out
	Pg    *sql.DB
	Redis *redis.Client
}

Infras is list of infra to be provide in dependency-injection

func Connect added in v0.8.28

func Connect(c InfraConfigs) (infras Infras, err error)

Connect to infra @ctor

Directories

Path Synopsis
Package repository_mock is a generated GoMock package.
Package repository_mock is a generated GoMock package.
Package service_mock is a generated GoMock package.
Package service_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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