helium

package module
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: MIT Imports: 9 Imported by: 12

README

Helium

codecov CircleCI Report GitHub release

logo
  • bind - simple replacement for echo.Binder
  • examples - of application
  • logger - simple package with zap / echo logger
  • orm - connect to PG database and check connection
  • redis - connect to redis and check connection
  • nats - connect to nats and check connection
  • settings - wrapper around viper
  • validate - simple replacement for echo.Validate

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Catch added in v0.6.0

func Catch(err error)

Catch errors

Types

type App

type App interface {
	Run(ctx context.Context) error
}

App implementation for helium

type Helium added in v0.5.0

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

Helium struct

func New added in v0.5.0

func New(cfg *Settings, mod module.Module) (*Helium, error)

New helium instance

func (Helium) Invoke added in v0.7.0

func (h Helium) Invoke(fn interface{}, args ...dig.InvokeOption) error

Invoke dependencies from DI container

func (Helium) Run added in v0.5.0

func (h Helium) Run() error

Run trying invoke app instance from DI container and start app with Run call

type Settings added in v0.7.0

type Settings struct {
	File         string
	Type         string
	Name         string
	Prefix       string
	BuildTime    string
	BuildVersion string
}

Settings struct

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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