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 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) *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
Click to show internal directories.
Click to hide internal directories.