market

package module
v0.0.0-...-c97fb91 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 15 Imported by: 0

README

Market

PkgGoDev Build Status Coverage Status Go Report Card

Market is an opensource market project you can use to create an online presence for your store.

Roadmap

  • Catalog
  • Search engine
  • Shopping cart & Purchase

Usage

This project is very experimental and on its early days.

Installation

This system requires multiple software to be installed:

License

This project is distributed under the permissive MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type System

type System struct {
	Modules *services.Modules
	// contains filtered or unexported fields
}

System of the market. Used both for running the HTTP servers and CLI tooling.

func (*System) ListenAndServe

func (s *System) ListenAndServe(ctx context.Context) (err error)

ListenAndServe listens on the TCP network address srv.Addr and then calls Serve to handle requests on incoming connections.

It uses net/http.*Server.ListenAndServe and ListenAndServerTLS functions behind the scene. This should be stateless and register HTTP handlers.

func (*System) Load

func (s *System) Load(filename string) (err error)

Load the system, but don't start up the HTTP server. This also does not test or close connections.

func (*System) ServeHTTP

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

ServerHTTP handles HTTP requests to the market system. It serves API, admin, and web pages based on the request Host address.

Directories

Path Synopsis
cmd
internal
api
cli
color
Package color can be used to add color to your terminal using ANSI escape code (or sequences).
Package color can be used to add color to your terminal using ANSI escape code (or sequences).
validator
Package validator can be used to return form validation errors.
Package validator can be used to return form validation errors.

Jump to

Keyboard shortcuts

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