openbazaar

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: May 1, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(username string, password string) (client *http.Client, err error)

Client sets up the client logs in.

func Login

func Login(client *http.Client, username string, password string) error

Login logs in with the username and password provided.

func PostContract

func PostContract(client *http.Client, contract Contract) error

PostContract posts a contract to OpenBazaar local server.

func UploadImage

func UploadImage(client *http.Client, img string) (hash string, err error)

UploadImage uploads an image.

Types

type Contract

type Contract struct {
	Title          string
	Image          string
	Tags           []string
	Price          string
	Description    string
	CurrencyCode   string
	ShippingOrigin string
}

Contract represents an OpenBazaar contract.

Jump to

Keyboard shortcuts

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