rpc

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port       string
	Host       string
	CACertFlag string
	CertFlag   string
	KeyFlag    string
}

type LedgerServer

type LedgerServer struct {
	transaction.UnimplementedTransactorServer
	// contains filtered or unexported fields
}

func (*LedgerServer) AddAccount added in v0.5.1

func (*LedgerServer) AddCurrency added in v0.3.0

func (*LedgerServer) AddTransaction

func (*LedgerServer) DeleteAccount added in v0.5.1

func (*LedgerServer) DeleteCurrency added in v0.3.0

func (*LedgerServer) DeleteTransaction

func (*LedgerServer) GetListing added in v0.4.0

func (*LedgerServer) GetTB

func (*LedgerServer) NodeVersion

func (*LedgerServer) ReconcileTransactions added in v0.6.0

func (*LedgerServer) VoidTransaction added in v0.3.0

type Service

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

func NewRPCService

func NewRPCService(ctx context.Context, cfg *Config, l *ledger.Ledger) *Service

func (*Service) Start

func (s *Service) Start()

Start the gRPC server.

func (*Service) Status

func (s *Service) Status() error

Status returns nil or credentialError

func (*Service) Stop

func (s *Service) Stop() error

Stop the service.

Jump to

Keyboard shortcuts

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