handler

package
v0.0.0-...-0011e7b Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package handler provides the functionality of HTTP/2 gRPC handler. It receives request and returns response.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Health

type Health struct {
	grpc_health_v1.UnimplementedHealthServer
}

Health handles HTTP/2 gRPC request for health checking.

func NewHealth

func NewHealth() *Health

NewHealth creates an instance of Health.

func (*Health) Check

Check checks the entire system health.

type WalletCommand

type WalletCommand struct {
	apiv1.UnimplementedWalletCommandServiceServer
	// contains filtered or unexported fields
}

WalletCommand handles HTTP/2 gRPC request for state-changing wallet.

func NewWalletCommand

NewWalletCommand creates an instance of WalletCommand.

func (*WalletCommand) CreateWallet

CreateWallet handles HTTP/2 gRPC request similar to POST in HTTP/1.1.

func (*WalletCommand) TopupWallet

TopupWallet handles HTTP/2 gRPC request similar to POST in HTTP/1.1.

func (*WalletCommand) TransferBalance

TransferBalance handles HTTP/2 gRPC request similar to POST in HTTP/1.1.

Jump to

Keyboard shortcuts

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