handler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler implements a gRPC service.

func NewHandler

func NewHandler(bs *blc.BlockSet, ss *ws.Sockets) *Handler

NewHandler creates a new instance of Handler.

func (*Handler) CreateBlock

func (h *Handler) CreateBlock(c *gin.Context)

CreateBlock handles the creation of a new block.

func (*Handler) CreatePeer

func (h *Handler) CreatePeer(c *gin.Context)

CreatePeer handles the creation of a new peer.

func (*Handler) ListBlock

func (h *Handler) ListBlock(c *gin.Context)

ListBlock retrieves a list of blocks based on query parameters.

func (*Handler) ListPeer

func (h *Handler) ListPeer(c *gin.Context)

ListPeer retrieves a list of peers based on query parameters.

func (*Handler) WSHandler

func (h *Handler) WSHandler(w *websocket.Conn)

Jump to

Keyboard shortcuts

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