Documentation ¶
Index ¶
- Constants
- type ApiController
- type Comparser
- func (comp *Comparser) AddAsset(w http.ResponseWriter, r *http.Request) string
- func (comp *Comparser) DeleteAsset(w http.ResponseWriter, r *http.Request) string
- func (comp *Comparser) GetAsset(w http.ResponseWriter, r *http.Request) string
- func (comp *Comparser) GetAssets(w http.ResponseWriter, r *http.Request) string
- func (comp *Comparser) GetVersion() string
- func (comp *Comparser) Init()
- func (comp *Comparser) UpdateAsset(w http.ResponseWriter, r *http.Request) string
- type Config
Constants ¶
View Source
const AppName, VersionMajor, VersionMinor, VersionPatch, VersionBuild string = "hypercocoagateway", "0", "0", "1", "d"
View Source
const FullVersion string = AppName + VersionMajor + "." + VersionMinor + "." + VersionPatch + VersionBuild
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiController ¶
func (*ApiController) Route ¶
func (ac *ApiController) Route()
Route proxies requests restfully to the chain
func (*ApiController) Start ¶
func (ac *ApiController) Start(host, port, sslport string)
Start the webserver. Note that Route must be called first
type Comparser ¶
type Comparser struct {
Conf *Config
}
func (*Comparser) DeleteAsset ¶
DeleteAsset deletes an asset from the chain
func (*Comparser) GetVersion ¶
GetVersion returns the gateway version
func (*Comparser) Init ¶
func (comp *Comparser) Init()
Init the Command Parser. Nothing needs to be done here at the moment
func (*Comparser) UpdateAsset ¶
UpdateAsset updates an asset on the chain
Click to show internal directories.
Click to hide internal directories.