rpc

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: GPL-3.0 Imports: 12 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
}

type LedgerServer

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

func (*LedgerServer) AddCurrency added in v0.3.0

func (*LedgerServer) AddTag

func (*LedgerServer) AddTransaction

func (s *LedgerServer) AddTransaction(ctx context.Context, in *pb.TransactionRequest) (*pb.TransactionResponse, error)

func (*LedgerServer) DeleteCurrency added in v0.3.0

func (*LedgerServer) DeleteTag

func (*LedgerServer) DeleteTransaction

func (s *LedgerServer) DeleteTransaction(ctx context.Context, in *pb.DeleteRequest) (*pb.TransactionResponse, error)

func (*LedgerServer) GetTB

func (s *LedgerServer) GetTB(ctx context.Context, in *pb.TBRequest) (*pb.TBResponse, error)

func (*LedgerServer) NodeVersion

func (s *LedgerServer) NodeVersion(ctx context.Context, in *pb.VersionRequest) (*pb.VersionResponse, error)

func (*LedgerServer) VoidTransaction added in v0.3.0

func (s *LedgerServer) VoidTransaction(ctx context.Context, in *pb.DeleteRequest) (*pb.TransactionResponse, error)

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