operator

package
v0.0.0-...-4fc5c05 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const LARRY_ADDR = ""
View Source
const LARRY_NONCE uint64 = 0

filler consts to simulate a basic transaction

Variables

This section is empty.

Functions

func ValidateCheck

func ValidateCheck(check *pb.CheckTransaction) bool

Types

type Server

type Server struct{}

Server implements the Operator service

func (*Server) GetLastTransaction

func (s *Server) GetLastTransaction(context.Context, *pb.Empty) (*pb.StatusResp, error)

Gets the status of the last transaction sent by this user to this operator

func (*Server) GetMinFee

func (s *Server) GetMinFee(context.Context, *pb.Empty) (*pb.FeeResp, error)

func (*Server) OperatorTarget

func (s *Server) OperatorTarget(context.Context, *pb.Empty) (*pb.OperatorTargetResp, error)

func (*Server) SendCheck

func (s *Server) SendCheck(ctx context.Context, check *pb.CheckTransaction) (*pb.QueueID, error)

sends the signed transaction from the client to the operator.

func (*Server) Status

func (s *Server) Status(ctx context.Context, reciept *pb.QueueID) (*pb.StatusResp, error)

retrieves the transaction information from the perspective of the operator

Jump to

Keyboard shortcuts

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