package
0.0.0-20230506122211-e0629577a5ca
Repository: https://github.com/0b1t322/documents-service.git
Documentation: pkg.go.dev

# Functions

NewClient initializes new Client defined by OAS.
NewDeleteTextDocumentOperation returns new DocumentOperation from DeleteText.
NewInsertTextDocumentOperation returns new DocumentOperation from InsertText.
NewOptString returns new OptString with value set to v.
NewServer creates new Server.
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.

# Constants

Possible values for DocumentOperationType.
Possible values for DocumentOperationType.

# Structs

Client implements OAS client.
Ref: #/components/schemas/DeleteText.
Ref: #/components/schemas/Document.
Ref: #/components/schemas/DocumentOperation DocumentOperation represents sum type.
Ref: #/components/schemas/DocumentRevision.
Ref: #/components/schemas/Error.
ErrorStatusCode wraps Error with StatusCode.
GetDocumentHistoryParams is parameters of getDocumentHistory operation.
GetDocumentRevisionIdParams is parameters of getDocumentRevisionId operation.
Ref: #/components/schemas/InsertText.
OptString is optional string.
PushOperationToDocumentNoContent is response for PushOperationToDocument operation.
PushOperationToDocumentParams is parameters of pushOperationToDocument operation.
Route is route object.
Ref: #/components/schemas/SaveDocumentRequest.
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
SyncDocumentsByIdParams is parameters of syncDocumentsById operation.
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

# Interfaces

ClientOption is client config option.
No description provided by the author
No description provided by the author
Handler handles operations described by OpenAPI v3 specification.
Option is config option.
No description provided by the author
ServerOption is server config option.
No description provided by the author

# Type aliases

DocumentOperationType is oneOf type of DocumentOperation.
ErrorHandler is error handler.
No description provided by the author
Middleware is middleware type.
No description provided by the author