server

package
v0.0.0-...-44a3378 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(configPath string) (*config, error)

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(configPath string) (*Server, error)

func (*Server) AddMoney

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

func (*Server) AllowTransaction

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

func (*Server) GenerateReport

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

func (*Server) GetAddres

func (s *Server) GetAddres() string

func (*Server) GetClientBalance

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

func (*Server) GetReport

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

func (*Server) ReserveMoney

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

func (*Server) UnreserveMoney

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

func (*Server) Up

func (s *Server) Up()

Jump to

Keyboard shortcuts

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