CovenantSQL: github.com/CovenantSQL/CovenantSQL/api Index | Files | Directories

package api

import "github.com/CovenantSQL/CovenantSQL/api"

Index

Package Files

blocks.go service.go transactions.go

func Serve Uses

func Serve(addr, dbFile string) error

Serve runs an API server on the specified address and database file.

func StopService Uses

func StopService()

StopService stops the API server.

type BPGetBlockListResponse Uses

type BPGetBlockListResponse struct {
    Blocks     []*models.Block    `json:"blocks"`
    Pagination *models.Pagination `json:"pagination"`
}

BPGetBlockListResponse is the response for method bp_getBlockList.

type BPGetTransactionListResponse Uses

type BPGetTransactionListResponse struct {
    Transactions []*models.Transaction `json:"transactions"`
    Pagination   *models.Pagination    `json:"pagination"`
}

BPGetTransactionListResponse is the response for method bp_getTransactionList.

Directories

PathSynopsis
models

Package api imports 9 packages (graph). Updated 2019-02-27. Refresh now. Tools for package owners.