swagger

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: MIT Imports: 7 Imported by: 0

README

Go API Server for swagger

The LBRY blockchain is read into SQL where important structured information can be extracted through the Chain Query API.

Overview

This server was generated by the [swagger-codegen] (https://github.com/swagger-api/swagger-codegen) project. By using the OpenAPI-Spec from a remote server, you can easily generate a server stub.

To see how to make this your own, look here:

README

  • API version: 0.1.0
  • Build date: 2018-05-06T02:15:07.364-04:00
Running the server

To run the server, follow these simple steps:

go run main.go

Documentation

Overview

* Chain Query * * The LBRY blockchain is read into SQL where important structured information can be extracted through the Chain Query API. * * API version: 0.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Chain Query * * The LBRY blockchain is read into SQL where important structured information can be extracted through the Chain Query API. * * API version: 0.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Chain Query * * The LBRY blockchain is read into SQL where important structured information can be extracted through the Chain Query API. * * API version: 0.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Chain Query * * The LBRY blockchain is read into SQL where important structured information can be extracted through the Chain Query API. * * API version: 0.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Chain Query * * The LBRY blockchain is read into SQL where important structured information can be extracted through the Chain Query API. * * API version: 0.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Chain Query * * The LBRY blockchain is read into SQL where important structured information can be extracted through the Chain Query API. * * API version: 0.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

* Chain Query * * The LBRY blockchain is read into SQL where important structured information can be extracted through the Chain Query API. * * API version: 0.1.0 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(inner http.Handler, name string) http.Handler

func NewRouter

func NewRouter() *mux.Router

Types

type AddressSummary

type AddressSummary struct {
	Address string `json:"Address,omitempty"`

	// Total amount received by address from all transactions it was a part of.
	TotalReceived float64 `json:"TotalReceived,omitempty"`

	// Total amount sent from address for all transactions it was a part of.
	TotalSent float64 `json:"TotalSent,omitempty"`

	// The current balance of an address
	Balance float64 `json:"Balance,omitempty"`
}

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc Handler
}

type Routes

type Routes []Route

type TableSize

type TableSize struct {

	// Name of the table being referenced.
	TableName string `json:"TableName,omitempty"`

	// The number of rows in the referenced table
	NrRows int64 `json:"NrRows,omitempty"`
}

Contains the name and number of rows for a table.

type TableStatus

type TableStatus struct {
	Status []TableSize `json:"TableStatus,omitempty"`
}

Contains an array of tables and their row count.

Jump to

Keyboard shortcuts

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