handler

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 7 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

ProviderSet contains providers for creating instances of the biz struct.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	v1.UnimplementedGatewayServer
	// contains filtered or unexported fields
}

Handler implements a gRPC service.

func NewHandler

func NewHandler(biz biz.IBiz, idt *idempotent.Idempotent) *Handler

NewHandler creates a new instance of *Handler.

func (*Handler) CreateMiner

func (h *Handler) CreateMiner(ctx context.Context, rq *v1beta1.Miner) (*v1beta1.Miner, error)

CreateMiner handles the creation of a new miner.

func (*Handler) CreateMinerSet

func (h *Handler) CreateMinerSet(ctx context.Context, rq *v1beta1.MinerSet) (*v1beta1.MinerSet, error)

CreateMinerSet handles the creation of a new minerset.

func (*Handler) DeleteMiner

func (h *Handler) DeleteMiner(ctx context.Context, rq *v1.DeleteMinerRequest) (*v1.DeleteMinerResponse, error)

DeleteMiner handles the deletion of one or more miners.

func (*Handler) DeleteMinerSet

DeleteMinerSet handles the deletion of one or more minersets.

func (*Handler) GetIdempotentToken

func (s *Handler) GetIdempotentToken(ctx context.Context, rq *v1.IdempotentRequest) (*v1.IdempotentResponse, error)

func (*Handler) GetMiner

func (h *Handler) GetMiner(ctx context.Context, rq *v1.GetMinerRequest) (*v1beta1.Miner, error)

GetMiner retrieves information about a specific miner.

func (*Handler) GetMinerSet

func (h *Handler) GetMinerSet(ctx context.Context, rq *v1.GetMinerSetRequest) (*v1beta1.MinerSet, error)

GetMinerSet retrieves information about a specific minerset.

func (*Handler) GetVersion

func (s *Handler) GetVersion(ctx context.Context, rq *v1.GetVersionRequest) (*v1.GetVersionResponse, error)

func (*Handler) ListMiner

func (h *Handler) ListMiner(ctx context.Context, rq *v1.ListMinerRequest) (*v1.ListMinerResponse, error)

ListMiner retrieves a list of miners based on query parameters.

func (*Handler) ListMinerSet

func (h *Handler) ListMinerSet(ctx context.Context, rq *v1.ListMinerSetRequest) (*v1.ListMinerSetResponse, error)

ListMinerSet retrieves a list of minersets based on query parameters.

func (*Handler) ScaleMinerSet

ScaleMinerSet handles scaling operations for a specific minerset.

func (*Handler) UpdateMiner

func (h *Handler) UpdateMiner(ctx context.Context, rq *v1beta1.Miner) (*v1beta1.Miner, error)

UpdateMiner handles updating an existing miner's details.

func (*Handler) UpdateMinerSet

func (h *Handler) UpdateMinerSet(ctx context.Context, rq *v1beta1.MinerSet) (*v1beta1.MinerSet, error)

UpdateMinerSet handles updating an existing minerset's details.

Jump to

Keyboard shortcuts

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