Documentation ¶
Overview ¶
Package public maintains the group of handlers for public access.
Index ¶
- type Handlers
- func (h Handlers) Accounts(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (h Handlers) BlocksByAccount(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (h Handlers) Events(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (h Handlers) Genesis(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (h Handlers) Mempool(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (h Handlers) SubmitWalletTransaction(ctx context.Context, w http.ResponseWriter, r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handlers ¶
type Handlers struct { Log *zap.SugaredLogger State *state.State NS *nameservice.NameService WS websocket.Upgrader Evts *events.Events }
Handlers manages the set of bar ledger endpoints.
func (Handlers) BlocksByAccount ¶
func (h Handlers) BlocksByAccount(ctx context.Context, w http.ResponseWriter, r *http.Request) error
BlocksByAccount returns all the blocks and their details.
func (Handlers) SubmitWalletTransaction ¶
func (h Handlers) SubmitWalletTransaction(ctx context.Context, w http.ResponseWriter, r *http.Request) error
SubmitWalletTransaction adds new transactions to the mempool.
Click to show internal directories.
Click to hide internal directories.