servers

package
v0.0.0-...-e95280a Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(
	peerSyncInterval time.Duration,
	chainRepository chains.Repository,
	timeLayout string,
)

Init initializes the package

Types

type Server

type Server interface {
	Start()
	Stop()
}

Server represents a rest api server

func NewServer

func NewServer(
	rep repositories.Application,
	router *mux.Router,
	waitPeriod time.Duration,
	port uint,
) Server

NewServer creates a new server instance

Jump to

Keyboard shortcuts

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