Versions in this module Expand all Collapse all v0 v0.0.3 Aug 13, 2021 Changes in this version + const DefaultMaxBufferSize + const INDEX + var ErrInvalidRequestBody = NewError(int(reqBodyErr), "Invalid request body", "") + var ErrInvalidRequestParameter = NewError(int(reqParamErr), "Invalid request parameter", "") + var ErrInvalidWhence = errors.New("invalid whence") + var ErrMaxSizeExceeded = errors.New("max size exceeded") + var ErrNegativePosition = errors.New("negative position") + func New(opts ...Option) *gin.Engine + func Render(c *gin.Context, code int, obj protoiface.MessageV1) + func WithDebug(conf *config) + func WriteJSON(w http.ResponseWriter, obj protoiface.MessageV1) error + type Error struct + Code int + Description string + Message string + func NewError(code int, message, description string) *Error + func (e *Error) Copy() Error + func (e *Error) Error() string + type JSON struct + Data protoiface.MessageV1 + func (r JSON) Render(w http.ResponseWriter) (err error) + func (r JSON) WriteContentType(w http.ResponseWriter) + type Option func(conf *config) + func WithUI(enabled bool, prefix, root string, indexes bool, baseURL string) Option + func WithWhiteList(whitelistIp string) Option v0.0.2 Aug 10, 2021 v0.0.1 Aug 8, 2021