grpc

package
v0.0.0-...-dbca141 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const TB_MAX_BATCH_SIZE = 8190

Variables

View Source
var (
	ErrZeroAccounts  = errors.New("no accounts were specified")
	ErrZeroTransfers = errors.New("no transfers were specified")
)

Functions

func AccountBalanceFromTigerbeetleToProto

func AccountBalanceFromTigerbeetleToProto(tbBalance types.AccountBalance) *proto.AccountBalance

func AccountFilterFromProtoToTigerbeetle

func AccountFilterFromProtoToTigerbeetle(pAccountFilter *proto.AccountFilter) (*types.AccountFilter, error)

func AccountToProtoAccount

func AccountToProtoAccount(tbAccount types.Account) *proto.Account

func HexStringToUint128

func HexStringToUint128(hex string) (*types.Uint128, error)

func NewServer

func NewServer()

func ResultsToReply

func ResultsToReply(results []types.TransferEventResult, transfers []types.Transfer, err error) []*proto.CreateTransfersReplyItem

func TransferToProtoTransfer

func TransferToProtoTransfer(tbTransfer types.Transfer) *proto.Transfer

Types

type App

func NewApp

func NewApp() *App

func (*App) Close

func (a *App) Close()

func (*App) CreateAccounts

func (s *App) CreateAccounts(ctx context.Context, in *proto.CreateAccountsRequest) (*proto.CreateAccountsReply, error)

func (*App) CreateTransfers

func (*App) GetID

func (s *App) GetID(ctx context.Context, in *proto.GetIDRequest) (*proto.GetIDReply, error)

func (*App) LookupAccounts

func (s *App) LookupAccounts(ctx context.Context, in *proto.LookupAccountsRequest) (*proto.LookupAccountsReply, error)

func (*App) LookupTransfers

type TimedPayload

type TimedPayload struct {
	Transfers []types.Transfer
	// contains filtered or unexported fields
}

type TimedPayloadResponse

type TimedPayloadResponse struct {
	Replies []*proto.CreateTransfersReplyItem
	Error   error
}

Jump to

Keyboard shortcuts

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