api

package
v0.0.0-...-6b2b62e Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package api provides API for chestnut.

Package api provides API for chestnut.

Index

Constants

View Source
const ERROR_INFO string = "error"

error

View Source
const GENESIS_BLOCK string = "genesis_block"
View Source
const GROUP_ID string = "group_id"
View Source
const GROUP_ITEM string = "group_item"
View Source
const GROUP_ITEMS string = "group_items"
View Source
const GROUP_NAME string = "group_name"

const name

View Source
const GROUP_OWNER_PUBKEY string = "owner_pubkey"
View Source
const NODETYPE string = "node_type"
View Source
const NODE_ID string = "node_id"
View Source
const NODE_PUBKEY string = "node_publickey"
View Source
const NODE_STATUS string = "node_status"
View Source
const NODE_VERSION string = "node_version"
View Source
const PEERS string = "peers"
View Source
const SIGNATURE string = "signature"
View Source
const TRX_ID string = "trx_id"

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupContentObjectItem

type GroupContentObjectItem struct {
	TrxId     string
	Publisher string
	Content   proto.Message
	TypeUrl   string
	TimeStamp int64
}

type Handler

type Handler struct {
	Ctx       context.Context
	Appdb     *appdata.AppDb
	Chaindb   *storage.DbMgr
	Apiroot   string
	GitCommit string
	ConfigDir string
	PeerName  string
	NodeName  string
}

func (*Handler) ContentByPeers

func (h *Handler) ContentByPeers(c echo.Context) (err error)

type SenderList

type SenderList struct {
	Senders []string
}

Jump to

Keyboard shortcuts

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