server

package
v0.0.0-...-87d8b44 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(config Config, logger log.Logger) (*server, error)

NewServer creates a new demand server

Types

type Closer

type Closer interface {
	Close() error
}

Closer requires Close()

type Config

type Config struct {
	Environment      string
	HTTPCmdAddr      string
	WebhookSecretKey string
	SfpyApiKey       string
}

Config is the server config :-)

type RunCloser

type RunCloser interface {
	Runner
	Closer
}

RunCloser needs Runner and Closer

func NewHTTPTransport

func NewHTTPTransport(config Config, logger log.Logger) (RunCloser, error)

NewHTTPTransport <>

type Runner

type Runner interface {
	Run() error
}

Runner requires Run()

Jump to

Keyboard shortcuts

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