Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPageAfter ¶
Types ¶
type AccountHandler ¶
type AccountHandler struct {
*BaseHandler
}
func NewAccountHandler ¶
func (*AccountHandler) Get ¶
func (h *AccountHandler) Get(w http.ResponseWriter, r *http.Request)
func (*AccountHandler) GetAccounts ¶
func (h *AccountHandler) GetAccounts(accountChannel chan upclient.AccountResource, ownershipType upclient.OwnershipTypeEnum)
func (*AccountHandler) Post ¶
func (h *AccountHandler) Post(w http.ResponseWriter, r *http.Request)
type BaseHandler ¶
type BaseHandler struct { Uri string Log *log.Logger UpClient *upclient.APIClient UpAuth context.Context Handler Handler // Embed the Handler interface MaxPageSize int32 }
func (*BaseHandler) ServeHTTP ¶
func (h *BaseHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Handler ¶
type Handler interface { Post(w http.ResponseWriter, r *http.Request) Get(w http.ResponseWriter, r *http.Request) }
type StaticFileHandler ¶
type StaticFileHandler struct {
*BaseHandler
}
func NewStaticFileHandler ¶
func NewStaticFileHandler(log *log.Logger) *StaticFileHandler
func (*StaticFileHandler) Get ¶
func (s *StaticFileHandler) Get(w http.ResponseWriter, r *http.Request)
func (*StaticFileHandler) Post ¶
func (s *StaticFileHandler) Post(w http.ResponseWriter, r *http.Request)
type TransactionsCsvHandler ¶
type TransactionsCsvHandler struct { *BaseHandler *TransactionsHandler }
func NewTransactionCsvHandler ¶
func NewTransactionCsvHandler(log *log.Logger, upclient *upclient.APIClient, auth context.Context, transactionsHandler *TransactionsHandler) *TransactionsCsvHandler
func (*TransactionsCsvHandler) Get ¶
func (h *TransactionsCsvHandler) Get(w http.ResponseWriter, r *http.Request)
func (*TransactionsCsvHandler) Post ¶
func (h *TransactionsCsvHandler) Post(w http.ResponseWriter, r *http.Request)
type TransactionsHandler ¶
type TransactionsHandler struct { *BaseHandler *AccountHandler }
func NewTransactionHandler ¶
func NewTransactionHandler(log *log.Logger, upclient *upclient.APIClient, auth context.Context, accountHandler *AccountHandler) *TransactionsHandler
func (*TransactionsHandler) Get ¶
func (h *TransactionsHandler) Get(w http.ResponseWriter, r *http.Request)
func (*TransactionsHandler) Post ¶
func (h *TransactionsHandler) Post(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.