Documentation ¶
Index ¶
- func DisableLog()
- func StreamAccountTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamBalanceTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamBallotTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamBigmapAllocTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamBigmapUpdateTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamBigmapValueTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamBlockTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamChainTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamConstantTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamContractTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamElectionTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamEventTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamFlowTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamIncomeTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamOpTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamProposalTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamRightsTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamSnapshotTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamSupplyTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func StreamTable(ctx *server.Context) (interface{}, int)
- func StreamVoteTable(ctx *server.Context, args *TableRequest) (interface{}, int)
- func UseLogger(logger logpkg.Logger)
- type Account
- type Balance
- type Ballot
- type BigmapAllocItem
- type BigmapUpdateItem
- type BigmapValueItem
- type Block
- type Chain
- type Constant
- type Contract
- type Election
- type Event
- type Flow
- type Income
- type Op
- type OpSorter
- type Proposal
- type Right
- type Snapshot
- type Supply
- type TableRequest
- func (t TableRequest) Expires() time.Time
- func (t TableRequest) LastModified() time.Time
- func (t *TableRequest) Parse(ctx *server.Context)
- func (t TableRequest) RESTPath(r *mux.Router) string
- func (t TableRequest) RESTPrefix() string
- func (t TableRequest) RegisterDirectRoutes(r *mux.Router) error
- func (t TableRequest) RegisterRoutes(r *mux.Router) error
- type Vote
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.
func StreamAccountTable ¶
func StreamAccountTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamBalanceTable ¶
func StreamBalanceTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamBallotTable ¶
func StreamBallotTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamBigmapAllocTable ¶
func StreamBigmapAllocTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamBigmapUpdateTable ¶
func StreamBigmapUpdateTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamBigmapValueTable ¶
func StreamBigmapValueTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamBlockTable ¶
func StreamBlockTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamChainTable ¶
func StreamChainTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamConstantTable ¶
func StreamConstantTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamContractTable ¶
func StreamContractTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamElectionTable ¶
func StreamElectionTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamEventTable ¶
func StreamEventTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamFlowTable ¶
func StreamFlowTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamIncomeTable ¶
func StreamIncomeTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamOpTable ¶
func StreamOpTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamProposalTable ¶
func StreamProposalTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamRightsTable ¶
func StreamRightsTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamSnapshotTable ¶
func StreamSnapshotTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamSupplyTable ¶
func StreamSupplyTable(ctx *server.Context, args *TableRequest) (interface{}, int)
func StreamTable ¶
func StreamVoteTable ¶
func StreamVoteTable(ctx *server.Context, args *TableRequest) (interface{}, int)
Types ¶
type Account ¶
configurable marshalling helper
func (*Account) MarshalCSV ¶
func (*Account) MarshalJSON ¶
func (*Account) MarshalJSONBrief ¶
func (*Account) MarshalJSONVerbose ¶
type Balance ¶
configurable marshalling helper
func (*Balance) MarshalCSV ¶
func (*Balance) MarshalJSON ¶
func (*Balance) MarshalJSONBrief ¶
func (*Balance) MarshalJSONVerbose ¶
type Ballot ¶
configurable marshalling helper
func (*Ballot) MarshalCSV ¶
func (*Ballot) MarshalJSON ¶
func (*Ballot) MarshalJSONBrief ¶
func (*Ballot) MarshalJSONVerbose ¶
type BigmapAllocItem ¶
type BigmapAllocItem struct { model.BigmapAlloc // contains filtered or unexported fields }
configurable marshalling helper
func (*BigmapAllocItem) MarshalCSV ¶
func (b *BigmapAllocItem) MarshalCSV() ([]string, error)
func (*BigmapAllocItem) MarshalJSON ¶
func (b *BigmapAllocItem) MarshalJSON() ([]byte, error)
func (*BigmapAllocItem) MarshalJSONBrief ¶
func (b *BigmapAllocItem) MarshalJSONBrief() ([]byte, error)
func (*BigmapAllocItem) MarshalJSONVerbose ¶
func (b *BigmapAllocItem) MarshalJSONVerbose() ([]byte, error)
type BigmapUpdateItem ¶
type BigmapUpdateItem struct { model.BigmapUpdate // contains filtered or unexported fields }
configurable marshalling helper
func (*BigmapUpdateItem) MarshalCSV ¶
func (b *BigmapUpdateItem) MarshalCSV() ([]string, error)
func (*BigmapUpdateItem) MarshalJSON ¶
func (b *BigmapUpdateItem) MarshalJSON() ([]byte, error)
func (*BigmapUpdateItem) MarshalJSONBrief ¶
func (b *BigmapUpdateItem) MarshalJSONBrief() ([]byte, error)
func (*BigmapUpdateItem) MarshalJSONVerbose ¶
func (b *BigmapUpdateItem) MarshalJSONVerbose() ([]byte, error)
type BigmapValueItem ¶
type BigmapValueItem struct { model.BigmapValue // contains filtered or unexported fields }
configurable marshalling helper
func (*BigmapValueItem) MarshalCSV ¶
func (b *BigmapValueItem) MarshalCSV() ([]string, error)
func (*BigmapValueItem) MarshalJSON ¶
func (b *BigmapValueItem) MarshalJSON() ([]byte, error)
func (*BigmapValueItem) MarshalJSONBrief ¶
func (b *BigmapValueItem) MarshalJSONBrief() ([]byte, error)
func (*BigmapValueItem) MarshalJSONVerbose ¶
func (b *BigmapValueItem) MarshalJSONVerbose() ([]byte, error)
type Block ¶
type Block struct { model.Block Predecessor tezos.BlockHash `pack:"predecessor" json:"predecessor"` // contains filtered or unexported fields }
configurable marshalling helper
func (*Block) MarshalCSV ¶
func (*Block) MarshalJSON ¶
func (*Block) MarshalJSONBrief ¶
func (*Block) MarshalJSONVerbose ¶
type Chain ¶
configurable marshalling helper
func (*Chain) MarshalCSV ¶
func (*Chain) MarshalJSON ¶
func (*Chain) MarshalJSONBrief ¶
func (*Chain) MarshalJSONVerbose ¶
type Constant ¶
configurable marshalling helper
func (*Constant) MarshalCSV ¶
func (*Constant) MarshalJSON ¶
func (*Constant) MarshalJSONBrief ¶
func (*Constant) MarshalJSONVerbose ¶
type Contract ¶
configurable marshalling helper
func (*Contract) MarshalCSV ¶
func (*Contract) MarshalJSON ¶
func (*Contract) MarshalJSONBrief ¶
func (*Contract) MarshalJSONVerbose ¶
type Election ¶
configurable marshalling helper
func (*Election) MarshalCSV ¶
func (*Election) MarshalJSON ¶
func (*Election) MarshalJSONBrief ¶
func (*Election) MarshalJSONVerbose ¶
type Event ¶
configurable marshalling helper
func (*Event) MarshalCSV ¶
func (*Event) MarshalJSON ¶
func (*Event) MarshalJSONBrief ¶
func (*Event) MarshalJSONVerbose ¶
type Flow ¶
configurable marshalling helper
func (*Flow) MarshalCSV ¶
func (*Flow) MarshalJSON ¶
func (*Flow) MarshalJSONBrief ¶
func (*Flow) MarshalJSONVerbose ¶
type Income ¶
configurable marshalling helper
func (*Income) MarshalCSV ¶
func (*Income) MarshalJSON ¶
func (*Income) MarshalJSONBrief ¶
func (*Income) MarshalJSONVerbose ¶
type Op ¶
configurable marshalling helper
func (*Op) MarshalCSV ¶
func (*Op) MarshalJSON ¶
func (*Op) MarshalJSONBrief ¶
func (*Op) MarshalJSONVerbose ¶
type Proposal ¶
configurable marshalling helper
func (*Proposal) MarshalCSV ¶
func (*Proposal) MarshalJSON ¶
func (*Proposal) MarshalJSONBrief ¶
func (*Proposal) MarshalJSONVerbose ¶
type Right ¶
configurable marshalling helper
func (*Right) MarshalCSV ¶
func (*Right) MarshalJSON ¶
func (*Right) MarshalJSONBrief ¶
func (*Right) MarshalJSONVerbose ¶
type Snapshot ¶
configurable marshalling helper
func (*Snapshot) MarshalCSV ¶
func (*Snapshot) MarshalJSON ¶
func (*Snapshot) MarshalJSONBrief ¶
func (*Snapshot) MarshalJSONVerbose ¶
type Supply ¶
configurable marshalling helper
func (*Supply) MarshalCSV ¶
func (*Supply) MarshalJSON ¶
func (*Supply) MarshalJSONBrief ¶
func (*Supply) MarshalJSONVerbose ¶
type TableRequest ¶
type TableRequest struct { Table string `schema:"-"` Columns util.StringList `schema:"columns"` Limit uint `schema:"limit"` Cursor string `schema:"cursor"` Format string `schema:"-"` // from URL Order pack.OrderType `schema:"order"` // asc/desc Verbose bool `schema:"verbose"` Filename string `schema:"filename"` // for CSV downloads }
build packdb query from request
func (TableRequest) Expires ¶
func (t TableRequest) Expires() time.Time
func (TableRequest) LastModified ¶
func (t TableRequest) LastModified() time.Time
func (*TableRequest) Parse ¶
func (t *TableRequest) Parse(ctx *server.Context)
func (TableRequest) RESTPrefix ¶
func (t TableRequest) RESTPrefix() string
func (TableRequest) RegisterDirectRoutes ¶
func (t TableRequest) RegisterDirectRoutes(r *mux.Router) error
func (TableRequest) RegisterRoutes ¶
func (t TableRequest) RegisterRoutes(r *mux.Router) error
type Vote ¶
configurable marshalling helper