app

package
v0.0.0-...-97274ee Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// RootRouter is the starting point for all HTTP requests to the server.
	RootRouter *mux.Router
	Server     *http.Server
	Logger     *logrus.Logger
	Store      store.Store
	// contains filtered or unexported fields
}

func NewServer

func NewServer(store store.Store) (*Server, error)

func (*Server) InitAccount

func (s *Server) InitAccount()

func (*Server) InitTransaction

func (s *Server) InitTransaction()

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) Shutdown

func (s *Server) Shutdown()

func (*Server) Start

func (s *Server) Start(port int) error

func (*Server) StopHTTPServer

func (s *Server) StopHTTPServer()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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