app

package
v0.0.0-...-a6ef0dd Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridges

type Bridges struct {
	Redis bridge.Redis
}

func (*Bridges) Close

func (a *Bridges) Close() []error

type Repos

type Repos struct {
	ShortenerDB    internal.ShortenerDBRepo
	ShortenerCache internal.ShortenerCacheRepo
}

func (*Repos) Close

func (r *Repos) Close() []error

type UrlShortenerApp

type UrlShortenerApp struct {
	Bridges  *Bridges
	Repos    *Repos
	UseCases *Usecases
	Cfg      config.Config
}

func NewUrlShortenerApp

func NewUrlShortenerApp() (*UrlShortenerApp, error)

func (*UrlShortenerApp) Close

func (a *UrlShortenerApp) Close() []error

type Usecases

type Usecases struct {
	ShortenerUC internal.ShortenerUC
}

func (*Usecases) Close

func (*Usecases) Close() []error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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