Documentation ¶
Index ¶
- func BillableEventsHandler(store eventio.BillableEventReader, ...) echo.HandlerFunc
- func CurrencyRatesHandler(store eventio.CurrencyRateReader) echo.HandlerFunc
- func ForecastEventsHandler(store eventio.BillableEventForecaster) echo.HandlerFunc
- func ListenAndServe(ctx context.Context, logger lager.Logger, e *echo.Echo, addr string) error
- func New(cfg Config) *echo.Echo
- func PricingPlansHandler(store eventio.PricingPlanReader) echo.HandlerFunc
- func TotalCostHandler(store eventio.TotalCostReader) echo.HandlerFunc
- func UsageEventsHandler(store eventio.UsageEventReader, uaa auth.Authenticator) echo.HandlerFunc
- func VATRatesHandler(store eventio.VATRateReader) echo.HandlerFunc
- func WriteRowsAsJson(writer io.Writer, flusher http.Flusher, rows eventio.BillableEventRows) error
- type Config
- type ErrorResponse
- type Logger
- func (l *Logger) Debug(i ...interface{})
- func (l *Logger) Debugf(format string, i ...interface{})
- func (l *Logger) Debugj(j log.JSON)
- func (l *Logger) Error(i ...interface{})
- func (l *Logger) Errorf(format string, i ...interface{})
- func (l *Logger) Errorj(j log.JSON)
- func (l *Logger) Fatal(i ...interface{})
- func (l *Logger) Fatalf(format string, i ...interface{})
- func (l *Logger) Fatalj(j log.JSON)
- func (l *Logger) Info(i ...interface{})
- func (l *Logger) Infof(format string, i ...interface{})
- func (l *Logger) Infoj(j log.JSON)
- func (l *Logger) Level() log.Lvl
- func (l *Logger) Output() io.Writer
- func (l *Logger) Panic(i ...interface{})
- func (l *Logger) Panicf(format string, i ...interface{})
- func (l *Logger) Panicj(j log.JSON)
- func (l *Logger) Prefix() string
- func (l *Logger) Print(i ...interface{})
- func (l *Logger) Printf(format string, i ...interface{})
- func (l *Logger) Printj(j log.JSON)
- func (l *Logger) SetHeader(_ string)
- func (l *Logger) SetLevel(newLvl log.Lvl)
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) SetPrefix(p string)
- func (l *Logger) Warn(i ...interface{})
- func (l *Logger) Warnf(format string, i ...interface{})
- func (l *Logger) Warnj(j log.JSON)
- func (l *Logger) Write(p []byte) (int, error)
- type RowOfRows
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BillableEventsHandler ¶
func BillableEventsHandler(store eventio.BillableEventReader, consolidatedStore eventio.ConsolidatedBillableEventReader, uaa auth.Authenticator) echo.HandlerFunc
func CurrencyRatesHandler ¶ added in v0.57.0
func CurrencyRatesHandler(store eventio.CurrencyRateReader) echo.HandlerFunc
func ForecastEventsHandler ¶
func ForecastEventsHandler(store eventio.BillableEventForecaster) echo.HandlerFunc
func ListenAndServe ¶
func PricingPlansHandler ¶
func PricingPlansHandler(store eventio.PricingPlanReader) echo.HandlerFunc
func TotalCostHandler ¶ added in v0.65.0
func TotalCostHandler(store eventio.TotalCostReader) echo.HandlerFunc
func UsageEventsHandler ¶
func UsageEventsHandler(store eventio.UsageEventReader, uaa auth.Authenticator) echo.HandlerFunc
func VATRatesHandler ¶ added in v0.57.0
func VATRatesHandler(store eventio.VATRateReader) echo.HandlerFunc
func WriteRowsAsJson ¶
Types ¶
type Config ¶
type Config struct { // Authenticator sets the auth mechanism (required) Authenticator auth.Authenticator // Store sets the Store used for querying events (required) Store eventio.EventStore // Logger sets the request logger Logger lager.Logger // EnablePanic will cause the server to crash on panic if set to true EnablePanic bool }
type ErrorResponse ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger wraps a lager.Logger in the echo.Logger interface
func (*Logger) Write ¶ added in v0.63.0
Write writes len(p) bytes from p to the underlying data stream. It returns the number of bytes written from p (0 <= n <= len(p)) and any error encountered that caused the write to stop early. Write must return a non-nil error if it returns n < len(p). Write must not modify the slice data, even temporarily.
So… * Always say you wrote all the data. * Never return an error? * Parse the data as JSON without ever modifying the slice.
type RowOfRows ¶
type RowOfRows struct { RowsCollection []eventio.BillableEventRows // contains filtered or unexported fields }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.