server

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(services services.Services) (*Server, error)

func NewServerWithHandlers added in v0.8.0

func NewServerWithHandlers(services services.Services, h GrpcHandlers) (*Server, error)

func (*Server) Broadcast

func (s *Server) Broadcast(ctx context.Context, tx *pb.SignedTransaction) (out *pb.SignedTransaction, err error)

func (*Server) GetActivationStatus

func (s *Server) GetActivationStatus(ctx context.Context, req *g.ActivationStatusRequest) (*g.ActivationStatusResponse, error)

func (*Server) GetActiveLeases

func (s *Server) GetActiveLeases(req *g.AccountRequest, srv g.AccountsApi_GetActiveLeasesServer) error

func (*Server) GetBalances

func (s *Server) GetBalances(req *g.BalancesRequest, srv g.AccountsApi_GetBalancesServer) error

func (*Server) GetBaseTarget

func (s *Server) GetBaseTarget(ctx context.Context, req *empty.Empty) (*g.BaseTargetResponse, error)

func (*Server) GetBlock

func (s *Server) GetBlock(ctx context.Context, req *g.BlockRequest) (*g.BlockWithHeight, error)

func (*Server) GetBlockRange

func (s *Server) GetBlockRange(req *g.BlockRangeRequest, srv g.BlocksApi_GetBlockRangeServer) error

func (*Server) GetCumulativeScore

func (s *Server) GetCumulativeScore(ctx context.Context, req *empty.Empty) (*g.ScoreResponse, error)

func (*Server) GetCurrentHeight

func (s *Server) GetCurrentHeight(ctx context.Context, req *empty.Empty) (*wrappers.UInt32Value, error)

func (*Server) GetDataEntries

func (s *Server) GetDataEntries(req *g.DataRequest, srv g.AccountsApi_GetDataEntriesServer) error

func (*Server) GetInfo

func (s *Server) GetInfo(ctx context.Context, req *g.AssetRequest) (*g.AssetInfoResponse, error)

func (*Server) GetNFTList added in v0.8.0

func (s *Server) GetNFTList(req *g.NFTRequest, srv g.AssetsApi_GetNFTListServer) error

func (*Server) GetScript

func (s *Server) GetScript(ctx context.Context, req *g.AccountRequest) (*g.ScriptData, error)

func (*Server) GetStateChanges

func (*Server) GetStatuses

func (*Server) GetTransactions

func (*Server) GetUnconfirmed

func (*Server) ResolveAlias

func (s *Server) ResolveAlias(ctx context.Context, req *wrappers.StringValue) (*wrappers.BytesValue, error)

func (*Server) Run

func (s *Server) Run(ctx context.Context, address string) error

func (*Server) Serve added in v0.8.0

func (s *Server) Serve(l net.Listener) error

func (*Server) Sign

func (s *Server) Sign(ctx context.Context, req *g.SignRequest) (*pb.SignedTransaction, error)

func (*Server) Stop added in v0.8.0

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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