Skip to content

Commit

Permalink
Cleanup documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Dec 22, 2023
1 parent 1d4a48c commit 39e7f7b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions Sources/Hummingbird/Exports.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
@_exported import struct HummingbirdCore.TSTLSOptions
#endif

@_exported import struct NIOCore.ByteBuffer
@_exported import struct NIOCore.ByteBufferAllocator
@_exported import protocol NIOCore.EventLoop
@_exported import class NIOCore.EventLoopFuture
@_exported import protocol NIOCore.EventLoopGroup
@_exported import enum NIOCore.SocketAddress
@_exported import struct NIOCore.TimeAmount
@_exported @_documentation(visibility: internal) import struct NIOCore.ByteBuffer
@_exported @_documentation(visibility: internal) import struct NIOCore.ByteBufferAllocator
@_exported @_documentation(visibility: internal) import protocol NIOCore.EventLoop
@_exported @_documentation(visibility: internal) import class NIOCore.EventLoopFuture
@_exported @_documentation(visibility: internal) import protocol NIOCore.EventLoopGroup
@_exported @_documentation(visibility: internal) import enum NIOCore.SocketAddress
@_exported @_documentation(visibility: internal) import struct NIOCore.TimeAmount

@_exported import struct NIOHTTP1.HTTPHeaders
@_exported import enum NIOHTTP1.HTTPMethod
@_exported import enum NIOHTTP1.HTTPResponseStatus
@_exported @_documentation(visibility: internal) import struct NIOHTTP1.HTTPHeaders
@_exported @_documentation(visibility: internal) import enum NIOHTTP1.HTTPMethod
@_exported @_documentation(visibility: internal) import enum NIOHTTP1.HTTPResponseStatus
18 changes: 9 additions & 9 deletions Sources/Hummingbird/Server/ServiceContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ extension HBRequest {
return try operation(request)
}

/// Execute the given operation within a newly created ``Span``
/// Execute the given operation within a newly created `Span`
///
/// Calls operation with edited request that includes the serviceContext from span, and the span Be sure to use the
/// `HBRequest` passed to the closure as that includes the serviceContext
Expand All @@ -55,7 +55,7 @@ extension HBRequest {
///
/// - Parameters:
/// - operationName: The name of the operation being traced. This may be a handler function, database call, ...
/// - kind: The ``SpanKind`` of the ``Span`` to be created. Defaults to ``SpanKind/internal``.
/// - kind: The `SpanKind` of the `Span` to be created. Defaults to `SpanKind/internal`.
/// - operation: operation to wrap in a span start/end and execute immediately
/// - Returns: the value returned by `operation`
/// - Throws: the error the `operation` has thrown (if any)
Expand All @@ -67,7 +67,7 @@ extension HBRequest {
return try self.withSpan(operationName, context: self.serviceContext, ofKind: kind, operation)
}

/// Execute a specific task within a newly created ``Span``.
/// Execute a specific task within a newly created `Span`.
///
/// Calls operation with edited request that includes the serviceContext, and the span Be sure to use the
/// `HBRequest` passed to the closure as that includes the serviceContext
Expand All @@ -80,8 +80,8 @@ extension HBRequest {
///
/// - Parameters:
/// - operationName: The name of the operation being traced. This may be a handler function, database call, ...
/// - serviceContext: ServiceContext potentially containing trace identifiers of a parent ``Span``.
/// - kind: The ``SpanKind`` of the ``Span`` to be created. Defaults to ``SpanKind/internal``.
/// - serviceContext: ServiceContext potentially containing trace identifiers of a parent `Span`.
/// - kind: The `SpanKind` of the `Span` to be created. Defaults to `SpanKind/internal`.
/// - operation: operation to wrap in a span start/end and execute immediately
/// - Returns: the value returned by `operation`
/// - Throws: the error the `operation` has thrown (if any)
Expand All @@ -103,7 +103,7 @@ extension HBRequest {
}
}

/// Execute the given operation within a newly created ``Span``
/// Execute the given operation within a newly created `Span`
///
/// Calls operation with edited request that includes the serviceContext from span, and the span. Be sure to use the
/// `HBRequest` passed to the closure as that includes the serviceContext
Expand All @@ -112,7 +112,7 @@ extension HBRequest {
///
/// - Parameters:
/// - operationName: The name of the operation being traced. This may be a handler function, database call, ...
/// - kind: The ``SpanKind`` of the ``Span`` to be created. Defaults to ``SpanKind/internal``.
/// - kind: The `SpanKind` of the `Span` to be created. Defaults to `SpanKind/internal`.
/// - operation: operation to wrap in a span start/end and execute immediately
/// - Returns: the value returned by `operation`
/// - Throws: the error the `operation` has thrown (if any)
Expand All @@ -124,7 +124,7 @@ extension HBRequest {
return self.withSpan(operationName, context: self.serviceContext, ofKind: kind, operation)
}

/// Execute the given operation within a newly created ``Span``,
/// Execute the given operation within a newly created `Span`,
///
/// Calls operation with edited request that includes the serviceContext, and the span. Be sure to use the
/// `HBRequest` passed to the closure as that includes the serviceContext
Expand All @@ -133,7 +133,7 @@ extension HBRequest {
///
/// - Parameters:
/// - operationName: The name of the operation being traced. This may be a handler function, database call, ...
/// - kind: The ``SpanKind`` of the ``Span`` to be created. Defaults to ``SpanKind/internal``.
/// - kind: The `SpanKind` of the `Span` to be created. Defaults to `SpanKind/internal`.
/// - operation: operation to wrap in a span start/end and execute immediately
/// - Returns: the value returned by `operation`
/// - Throws: the error the `operation` has thrown (if any)
Expand Down
2 changes: 1 addition & 1 deletion Sources/HummingbirdJobs/Exports.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
//
//===----------------------------------------------------------------------===//

@_exported import struct Logging.Logger
@_exported @_documentation(visibility: internal) import struct Logging.Logger

0 comments on commit 39e7f7b

Please sign in to comment.