backend

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetRoutes

func SetRoutes(r *chi.Mux, s *APIServer)

SetRoutes

Types

type APIServer

type APIServer struct {
	// contains filtered or unexported fields
}

APIServer is an instance of the API service

func MakeAPIServer

func MakeAPIServer(
	kos *kelpos.KelpOS,
	horizonTestnetURI string,
	apiTestNet *horizonclient.Client,
	horizonPubnetURI string,
	apiPubNet *horizonclient.Client,
	ccxtRestUrl string,
	noHeaders bool,
) (*APIServer, error)

MakeAPIServer is a factory method

type ErrorResponse added in v1.8.0

type ErrorResponse struct {
	Error string `json:"error"`
}

ErrorResponse represents an error

Jump to

Keyboard shortcuts

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