Versions in this module Expand all Collapse all v0 v0.8.0 Feb 23, 2022 Changes in this version + type BaseResponse struct + Data interface{} + Errors []RespError + Status int + func NewBaseResponse() *BaseResponse + func (r *BaseResponse) ParseError(err error) + func (r *BaseResponse) SetData(v interface{}) + func (r *BaseResponse) Write(ctx context.Context, w http.ResponseWriter, log Logger) + type EntryHandlers struct + func NewEntryHandlers(service EntryService, logger tracelog.Logger, tracer *tracing.Tracer) *EntryHandlers + func (h *EntryHandlers) PingHandler(w http.ResponseWriter, r *http.Request) + func (h *EntryHandlers) StoreItemHandler(w http.ResponseWriter, r *http.Request) + func (h *EntryHandlers) StoreListHandler(w http.ResponseWriter, r *http.Request) + type EntryService interface + Ping func(ctx context.Context) error + StoreItem func(ctx context.Context, remoteIP string, data []byte) (err error) + StoreList func(ctx context.Context, remoteIP string, data []byte) (err error) + type InfoHandlers struct + func NewInfoHandlers(logger tracelog.Logger) *InfoHandlers + func (h *InfoHandlers) InfoHandler(w http.ResponseWriter, r *http.Request) + type Logger interface + Errorf func(ctx context.Context, template string, args ...interface{}) + type RespError struct + Code string + Detail string