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

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