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
}
Server is an impletation of the protobuf interface.
func (*Server) GetBalance ¶
GetBalance returns the balance of the account corresponding to the given id.
func (*Server) MakeTransaction ¶
func (s *Server) MakeTransaction(ctx context.Context, in *scrooge.Transaction) (*scrooge.Response, error)
MakeTransaction updates the account corresponding to the given account ID by adding or subtracted the account's balance by the given amount. It returns a response containing the account id and the updated balance.
Click to show internal directories.
Click to hide internal directories.