marketplace

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(m *FakeMarketplace) *bone.Mux

Routes returns all the routes for the HTTP Server as a bone.Mux

Types

type FakeMarketplace

type FakeMarketplace struct {
	Port      uint
	Product   *primitives.FakeProductData
	DB        *db.DB
	Connector *connector.FakeConnector
	GC        *grafton.Client
	Server    *http.Server
}

FakeMarketplace represents a fake marketplace dashboard and backend server

to allow provider to test a full integration experience without integrating

func New

func New(connector *connector.FakeConnector, port uint, pAPI *url.URL,
	signer grafton.Signer, data *primitives.FakeProductData) *FakeMarketplace

New creates a new FakeMarketplace based on the passed parameters

func (*FakeMarketplace) Start

func (m *FakeMarketplace) Start()

Start the server or return an error if it couldn't be started

func (*FakeMarketplace) StartSync

func (m *FakeMarketplace) StartSync() error

StartSync starts the server or returns an error if it couldn't be started

func (*FakeMarketplace) Stop

func (m *FakeMarketplace) Stop() error

Stop the server or return an error if it couldn't be stopped

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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