Initializerhummingbird 2.15.0HummingbirdCore
init(childChannelSetup:configuration:onServerRunning:eventLoopGroup:logger:)
Initialize Server
init(childChannelSetup: ChildChannel, configuration: ServerConfiguration, onServerRunning: ((any Channel) async -> Void)? = nil, eventLoopGroup: any EventLoopGroup, logger: Logger)
Parameters
- childChannelSetup
Server child channel
- configuration
Configuration for server
- onServerRunning
Closure to run once server is up and running
- eventLoopGroup
EventLoopGroup the server uses
- logger
Logger used by server