Versions in this module Expand all Collapse all v0 v0.0.1 May 10, 2018 Changes in this version + type BillResponse struct + Amount int + Successful bool + UnknownSubscriber bool + func (br *BillResponse) Status() Status + type Gateway interface + GetCurrentBill func(customerID, transactionID string) (*BillResponse, error) + PayBill func(customerID, transactionID string, Amount int) (*PaymentResponse, error) + type PaymentResponse struct + AlreadyPaid bool + Successful bool + func (pr *PaymentResponse) Status() Status + type Server struct + func NewServer() *Server + func (s *Server) Serve(l net.Listener, gateway Gateway) error + func (s *Server) Stop() + type Status string + const BillReturned + const CommonError + const NoCurrentBill + const PaymentAlreadyProcessed + const PaymentProcessed + const UnknownSubscriber