request

package
v0.0.0-...-73bab27 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRemoteClearer string = "cccccccccccccccc"
)

Config Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Database *match.DB
	Router   *httprouter.Router
}

Server Instance

func NewServer

func NewServer(address string) *Server

NewServer creates and returns a Server Instance

func (*Server) HTTPAddOrder

func (s *Server) HTTPAddOrder(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

HTTPAddOrder Unmarshals, Validates and Handles a HTTP Add Order Request

func (*Server) HTTPDeleteOrder

func (s *Server) HTTPDeleteOrder(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

HTTPDeleteOrder Unmarshals, Validates and Handles a HTTP Delete Order Request

func (*Server) HTTPGetDeals

func (s *Server) HTTPGetDeals(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

HTTPGetDeals Unmarshals, Validates and Handles a HTTP Get Deals Request

func (*Server) HTTPGetOrders

func (s *Server) HTTPGetOrders(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

HTTPGetOrders Unmarshals, Validates and Handles a HTTP Get Orders Request

func (*Server) HTTPUpdateClient

func (s *Server) HTTPUpdateClient(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

HTTPUpdateClient Unmarshals, Validates and Handles a HTTP Update Client Request

Jump to

Keyboard shortcuts

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