package
0.0.0-20240325093540-ab1f78f280ba
Repository: https://github.com/ugent-library/oai-service.git
Documentation: pkg.go.dev

# Functions

NewClient initializes new Client defined by OAS.
NewOptString returns new OptString with value set to v.
NewServer creates new Server.
No description provided by the author
WithClient specifies http client to use.
WithErrorHandler specifies error handler to use.
WithMaxMultipartMemory specifies limit of memory for storing file parts.
WithMeterProvider specifies a meter provider to use for creating a meter.
WithMethodNotAllowed specifies Method Not Allowed handler to use.
WithMiddleware specifies middlewares to use.
WithNotFound specifies Not Found handler to use.
WithPathPrefix specifies server path prefix.
WithServerURL sets context key to override server URL.
WithTracerProvider specifies a tracer provider to use for creating a tracer.

# Structs

AddItemOK is response for AddItem operation.
Ref: #/components/schemas/AddItemRequest.
AddMetadataFormatOK is response for AddMetadataFormat operation.
Ref: #/components/schemas/AddMetadataFormatRequest.
AddRecordOK is response for AddRecord operation.
Ref: #/components/schemas/AddRecordRequest.
AddSetOK is response for AddSet operation.
Ref: #/components/schemas/AddSetRequest.
No description provided by the author
Client implements OAS client.
DeleteRecordOK is response for DeleteRecord operation.
Ref: #/components/schemas/DeleteRecordRequest.
Ref: #/components/schemas/Error.
ErrorStatusCode wraps Error with StatusCode.
OptString is optional string.
Route is route object.
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
No description provided by the author
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

# Interfaces

ClientOption is client config option.
Handler handles operations described by OpenAPI v3 specification.
Option is config option.
SecurityHandler is handler for security parameters.
SecuritySource is provider of security values (tokens, passwords, etc.).
ServerOption is server config option.

# Type aliases

ErrorHandler is error handler.
Middleware is middleware type.