http

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Router

func Router(ctx context.Context) (*chi.Mux, error)

Router returns the http mux for the server. @title Centrifuge OS Node API @description Centrifuge OS Node API @version 2.0.0 @contact.name Centrifuge @contact.url https://github.com/centrifuge/go-centrifuge @contact.email hello@centrifuge.io @BasePath / @license.name MIT @host localhost:8082 @schemes http

Types

type Bootstrapper

type Bootstrapper struct{}

Bootstrapper implements bootstrapper.Bootstrapper

func (Bootstrapper) Bootstrap

func (b Bootstrapper) Bootstrap(ctx map[string]interface{}) error

Bootstrap initiates api server

type Config

type Config interface {
	GetServerAddress() string
	GetServerPort() int
	GetNetworkString() string
	IsPProfEnabled() bool
}

Config defines methods required for the package api

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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