api

package
v0.0.0-...-9d4beaf Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Prometheus  stdprometheus.Registerer
	HTTPHandler http.Handler
	Accounts    wallet.AccountRepository
	Payments    wallet.PaymentRepository

	DB    *pg.DB
	Close func()
}

func NewRestApp

func NewRestApp(config Config, logger log.Logger) App

func (*App) NewCounterFrom

func (app *App) NewCounterFrom(opts stdprometheus.CounterOpts, labelNames []string) *kitprometheus.Counter

func (*App) NewSummaryFrom

func (app *App) NewSummaryFrom(opts stdprometheus.SummaryOpts, labelNames []string) *kitprometheus.Summary

type Config

type Config struct {
	EnableInstrumenting bool
}

Jump to

Keyboard shortcuts

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