Versions in this module Expand all Collapse all v0 v0.1.8 Mar 13, 2025 v0.1.7 Mar 13, 2025 v0.1.6 Nov 24, 2023 v0.1.5 Nov 16, 2023 v0.1.4 Nov 16, 2023 Changes in this version type Format + func (Format) AllValues() []Format + type Invoker interface + AddPage func(ctx context.Context, request OptAddPageReq, params AddPageParams) (AddPageRes, error) + GetFile func(ctx context.Context, params GetFileParams) (GetFileRes, error) + GetPage func(ctx context.Context, params GetPageParams) (GetPageRes, error) + GetPages func(ctx context.Context) (Pages, error) type Route + func (r Route) Summary() string type Status + func (Status) AllValues() []Status v0.1.3 Apr 4, 2023 Changes in this version type Page + Meta PageMeta + func (s *Page) GetMeta() PageMeta + func (s *Page) SetMeta(val PageMeta) + type PageMeta struct + Description string + Error OptString + Title string + func (s *PageMeta) Decode(d *jx.Decoder) error + func (s *PageMeta) Encode(e *jx.Encoder) + func (s *PageMeta) GetDescription() string + func (s *PageMeta) GetError() OptString + func (s *PageMeta) GetTitle() string + func (s *PageMeta) MarshalJSON() ([]byte, error) + func (s *PageMeta) SetDescription(val string) + func (s *PageMeta) SetError(val OptString) + func (s *PageMeta) SetTitle(val string) + func (s *PageMeta) UnmarshalJSON(data []byte) error type PageWithResults + Meta PageWithResultsMeta + func (s *PageWithResults) GetMeta() PageWithResultsMeta + func (s *PageWithResults) SetMeta(val PageWithResultsMeta) + type PageWithResultsMeta struct + Description string + Error OptString + Title string + func (s *PageWithResultsMeta) Decode(d *jx.Decoder) error + func (s *PageWithResultsMeta) Encode(e *jx.Encoder) + func (s *PageWithResultsMeta) GetDescription() string + func (s *PageWithResultsMeta) GetError() OptString + func (s *PageWithResultsMeta) GetTitle() string + func (s *PageWithResultsMeta) MarshalJSON() ([]byte, error) + func (s *PageWithResultsMeta) SetDescription(val string) + func (s *PageWithResultsMeta) SetError(val OptString) + func (s *PageWithResultsMeta) SetTitle(val string) + func (s *PageWithResultsMeta) UnmarshalJSON(data []byte) error v0.1.2 Apr 3, 2023 v0.1.1 Apr 3, 2023 v0.1.0 Apr 2, 2023 Changes in this version + func WithServerURL(ctx context.Context, u *url.URL) context.Context + type AddPageBadRequest struct + Error string + Field string + func (s *AddPageBadRequest) Decode(d *jx.Decoder) error + func (s *AddPageBadRequest) Encode(e *jx.Encoder) + func (s *AddPageBadRequest) GetError() string + func (s *AddPageBadRequest) GetField() string + func (s *AddPageBadRequest) MarshalJSON() ([]byte, error) + func (s *AddPageBadRequest) SetError(val string) + func (s *AddPageBadRequest) SetField(val string) + func (s *AddPageBadRequest) UnmarshalJSON(data []byte) error + type AddPageParams struct + Description OptString + Formats []Format + URL OptString + type AddPageReq struct + Description OptString + Formats []Format + URL string + func (s *AddPageReq) Decode(d *jx.Decoder) error + func (s *AddPageReq) Encode(e *jx.Encoder) + func (s *AddPageReq) GetDescription() OptString + func (s *AddPageReq) GetFormats() []Format + func (s *AddPageReq) GetURL() string + func (s *AddPageReq) MarshalJSON() ([]byte, error) + func (s *AddPageReq) SetDescription(val OptString) + func (s *AddPageReq) SetFormats(val []Format) + func (s *AddPageReq) SetURL(val string) + func (s *AddPageReq) UnmarshalJSON(data []byte) error + func (s *AddPageReq) Validate() error + type AddPageRes interface + type Client struct + func NewClient(serverURL string, opts ...ClientOption) (*Client, error) + func (c *Client) AddPage(ctx context.Context, request OptAddPageReq, params AddPageParams) (AddPageRes, error) + func (c *Client) GetFile(ctx context.Context, params GetFileParams) (GetFileRes, error) + func (c *Client) GetPage(ctx context.Context, params GetPageParams) (GetPageRes, error) + func (c *Client) GetPages(ctx context.Context) (Pages, error) + type ClientOption interface + func WithClient(client ht.Client) ClientOption + type Error struct + Localized OptString + Message string + func (s *Error) Decode(d *jx.Decoder) error + func (s *Error) Encode(e *jx.Encoder) + func (s *Error) GetLocalized() OptString + func (s *Error) GetMessage() string + func (s *Error) MarshalJSON() ([]byte, error) + func (s *Error) SetLocalized(val OptString) + func (s *Error) SetMessage(val string) + func (s *Error) UnmarshalJSON(data []byte) error + type ErrorHandler = ogenerrors.ErrorHandler + type ErrorStatusCode struct + Response Error + StatusCode int + func (s *ErrorStatusCode) Error() string + func (s *ErrorStatusCode) GetResponse() Error + func (s *ErrorStatusCode) GetStatusCode() int + func (s *ErrorStatusCode) SetResponse(val Error) + func (s *ErrorStatusCode) SetStatusCode(val int) + type Format string + const FormatAll + const FormatHeaders + const FormatPdf + const FormatSingleFile + func (s *Format) Decode(d *jx.Decoder) error + func (s *Format) UnmarshalJSON(data []byte) error + func (s *Format) UnmarshalText(data []byte) error + func (s Format) Encode(e *jx.Encoder) + func (s Format) MarshalJSON() ([]byte, error) + func (s Format) MarshalText() ([]byte, error) + func (s Format) Validate() error + type GetFileNotFound struct + type GetFileOKApplicationPdf struct + Data io.Reader + func (s GetFileOKApplicationPdf) Read(p []byte) (n int, err error) + type GetFileOKTextHTML struct + Data io.Reader + func (s GetFileOKTextHTML) Read(p []byte) (n int, err error) + type GetFileOKTextPlain struct + Data io.Reader + func (s GetFileOKTextPlain) Read(p []byte) (n int, err error) + type GetFileParams struct + FileID uuid.UUID + ID uuid.UUID + type GetFileRes interface + type GetPageNotFound struct + type GetPageParams struct + ID uuid.UUID + type GetPageRes interface + type Handler interface + AddPage func(ctx context.Context, req OptAddPageReq, params AddPageParams) (AddPageRes, error) + GetFile func(ctx context.Context, params GetFileParams) (GetFileRes, error) + GetPage func(ctx context.Context, params GetPageParams) (GetPageRes, error) + GetPages func(ctx context.Context) (Pages, error) + NewError func(ctx context.Context, err error) *ErrorStatusCode + type Middleware = middleware.Middleware + type OptAddPageReq struct + Set bool + Value AddPageReq + func NewOptAddPageReq(v AddPageReq) OptAddPageReq + func (o *OptAddPageReq) Decode(d *jx.Decoder) error + func (o *OptAddPageReq) Reset() + func (o *OptAddPageReq) SetTo(v AddPageReq) + func (o OptAddPageReq) Encode(e *jx.Encoder) + func (o OptAddPageReq) Get() (v AddPageReq, ok bool) + func (o OptAddPageReq) IsSet() bool + func (o OptAddPageReq) Or(d AddPageReq) AddPageReq + func (s *OptAddPageReq) UnmarshalJSON(data []byte) error + func (s OptAddPageReq) MarshalJSON() ([]byte, error) + type OptString struct + Set bool + Value string + func NewOptString(v string) OptString + func (o *OptString) Decode(d *jx.Decoder) error + func (o *OptString) Reset() + func (o *OptString) SetTo(v string) + func (o OptString) Encode(e *jx.Encoder) + func (o OptString) Get() (v string, ok bool) + func (o OptString) IsSet() bool + func (o OptString) Or(d string) string + func (s *OptString) UnmarshalJSON(data []byte) error + func (s OptString) MarshalJSON() ([]byte, error) + type Option interface + func WithMeterProvider(provider metric.MeterProvider) Option + func WithTracerProvider(provider trace.TracerProvider) Option + type Page struct + Created time.Time + Formats []Format + ID uuid.UUID + Status Status + URL string + func (s *Page) Decode(d *jx.Decoder) error + func (s *Page) Encode(e *jx.Encoder) + func (s *Page) GetCreated() time.Time + func (s *Page) GetFormats() []Format + func (s *Page) GetID() uuid.UUID + func (s *Page) GetStatus() Status + func (s *Page) GetURL() string + func (s *Page) MarshalJSON() ([]byte, error) + func (s *Page) SetCreated(val time.Time) + func (s *Page) SetFormats(val []Format) + func (s *Page) SetID(val uuid.UUID) + func (s *Page) SetStatus(val Status) + func (s *Page) SetURL(val string) + func (s *Page) UnmarshalJSON(data []byte) error + func (s *Page) Validate() error + type PageWithResults struct + Created time.Time + Formats []Format + ID uuid.UUID + Results []Result + Status Status + URL string + func (s *PageWithResults) Decode(d *jx.Decoder) error + func (s *PageWithResults) Encode(e *jx.Encoder) + func (s *PageWithResults) GetCreated() time.Time + func (s *PageWithResults) GetFormats() []Format + func (s *PageWithResults) GetID() uuid.UUID + func (s *PageWithResults) GetResults() []Result + func (s *PageWithResults) GetStatus() Status + func (s *PageWithResults) GetURL() string + func (s *PageWithResults) MarshalJSON() ([]byte, error) + func (s *PageWithResults) SetCreated(val time.Time) + func (s *PageWithResults) SetFormats(val []Format) + func (s *PageWithResults) SetID(val uuid.UUID) + func (s *PageWithResults) SetResults(val []Result) + func (s *PageWithResults) SetStatus(val Status) + func (s *PageWithResults) SetURL(val string) + func (s *PageWithResults) UnmarshalJSON(data []byte) error + func (s *PageWithResults) Validate() error + type Pages []Page + func (s *Pages) Decode(d *jx.Decoder) error + func (s *Pages) UnmarshalJSON(data []byte) error + func (s Pages) Encode(e *jx.Encoder) + func (s Pages) MarshalJSON() ([]byte, error) + func (s Pages) Validate() error + type Result struct + Error OptString + Files []ResultFilesItem + Format Format + func (s *Result) Decode(d *jx.Decoder) error + func (s *Result) Encode(e *jx.Encoder) + func (s *Result) GetError() OptString + func (s *Result) GetFiles() []ResultFilesItem + func (s *Result) GetFormat() Format + func (s *Result) MarshalJSON() ([]byte, error) + func (s *Result) SetError(val OptString) + func (s *Result) SetFiles(val []ResultFilesItem) + func (s *Result) SetFormat(val Format) + func (s *Result) UnmarshalJSON(data []byte) error + func (s *Result) Validate() error + type ResultFilesItem struct + ID uuid.UUID + Mimetype string + Name string + Size int64 + func (s *ResultFilesItem) Decode(d *jx.Decoder) error + func (s *ResultFilesItem) Encode(e *jx.Encoder) + func (s *ResultFilesItem) GetID() uuid.UUID + func (s *ResultFilesItem) GetMimetype() string + func (s *ResultFilesItem) GetName() string + func (s *ResultFilesItem) GetSize() int64 + func (s *ResultFilesItem) MarshalJSON() ([]byte, error) + func (s *ResultFilesItem) SetID(val uuid.UUID) + func (s *ResultFilesItem) SetMimetype(val string) + func (s *ResultFilesItem) SetName(val string) + func (s *ResultFilesItem) SetSize(val int64) + func (s *ResultFilesItem) UnmarshalJSON(data []byte) error + type Route struct + func (r Route) Args() []string + func (r Route) Name() string + func (r Route) OperationID() string + func (r Route) PathPattern() string + type Server struct + func NewServer(h Handler, opts ...ServerOption) (*Server, error) + func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool) + func (s *Server) FindRoute(method, path string) (Route, bool) + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + type ServerOption interface + func WithErrorHandler(h ErrorHandler) ServerOption + func WithMaxMultipartMemory(max int64) ServerOption + func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption + func WithMiddleware(m ...Middleware) ServerOption + func WithNotFound(notFound http.HandlerFunc) ServerOption + func WithPathPrefix(prefix string) ServerOption + type Status string + const StatusDone + const StatusFailed + const StatusNew + const StatusProcessing + const StatusWithErrors + func (s *Status) Decode(d *jx.Decoder) error + func (s *Status) UnmarshalJSON(data []byte) error + func (s *Status) UnmarshalText(data []byte) error + func (s Status) Encode(e *jx.Encoder) + func (s Status) MarshalJSON() ([]byte, error) + func (s Status) MarshalText() ([]byte, error) + func (s Status) Validate() error + type UnimplementedHandler struct + func (UnimplementedHandler) AddPage(ctx context.Context, req OptAddPageReq, params AddPageParams) (r AddPageRes, _ error) + func (UnimplementedHandler) GetFile(ctx context.Context, params GetFileParams) (r GetFileRes, _ error) + func (UnimplementedHandler) GetPage(ctx context.Context, params GetPageParams) (r GetPageRes, _ error) + func (UnimplementedHandler) GetPages(ctx context.Context) (r Pages, _ error) + func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)