Back to godoc.org

Package http

v1.1.0
Latest Go to latest

The highest tagged major version is .

Published: Dec 12, 2019 | License: GPL3 | Module: github.com/paysuper/paysuper-management-api

Index

Constants

const (
	Prefix           = "internal.http"
	UnmarshalKey     = "http"
	UnmarshalKeyBind = "http.bind"
)

Variables

var (
	WireSet = wire.NewSet(
		Provider,
		Cfg,
	)
	WireTestSet = wire.NewSet(
		Provider,
		CfgTest,
	)
)

type Config

type Config struct {
	Debug bool   `fallback:"shared.debug"`
	Bind  string `required:"true"`
	// contains filtered or unexported fields
}

Config

func Cfg

func Cfg(cfg config.Configurator) (*Config, func(), error)

Cfg

func CfgTest

func CfgTest() (*Config, func(), error)

CfgTest

func (*Config) OnReload

func (c *Config) OnReload(callback func(ctx context.Context))

OnReload

func (*Config) Reload

func (c *Config) Reload(ctx context.Context)

Reload

type Dispatcher

type Dispatcher interface {
	Dispatch(http *echo.Echo) error
}

Dispatcher

type HTTP

type HTTP struct {
	provider.LMT
	// contains filtered or unexported fields
}

HTTP

func New

func New(ctx context.Context, set provider.AwareSet, dispatcher Dispatcher, cfg *Config) *HTTP

New

func Provider

func Provider(ctx context.Context, set provider.AwareSet, dispatcher Dispatcher, cfg *Config) (*HTTP, func(), error)

Provider

func (*HTTP) ListenAndServe

func (h *HTTP) ListenAndServe() (err error)

ListenAndServe

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier