Back to

Package http

Latest Go to latest

The latest major version is .

Published: Feb 4, 2020 | License: Unlicense | Module:



const BodyLimit = "12M"

BodyLimit is the upper limit for the http request body size.

func Serve

func Serve(cnf Config, logger *log.Logger, db *sql.DB, deployer *eth.SmartContractDeployer) error

Serve http connections

type Config

type Config struct {
	Address   string
	JWTSecret string

Config contains all the configurations to initialize an http server

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