Sha256: f7db7893dac566bfcbbda992da0719d32b7251e4e377c99a46f7577367b36129

Contents?: true

Size: 1.24 KB

Versions: 11

Compression:

Stored size: 1.24 KB

Contents

# frozen_string_literal: true

require_relative "service_skeleton/config_class"
require_relative "service_skeleton/config_variables"
require_relative "service_skeleton/generator"
require_relative "service_skeleton/logging_helpers"
require_relative "service_skeleton/metrics_methods"
require_relative "service_skeleton/service_name"
require_relative "service_skeleton/signals_methods"
require_relative "service_skeleton/ultravisor_children"

require "frankenstein/ruby_gc_metrics"
require "frankenstein/ruby_vm_metrics"
require "frankenstein/process_metrics"
require "frankenstein/server"
require "prometheus/client/registry"
require "sigdump"

module ServiceSkeleton
  include ServiceSkeleton::LoggingHelpers
  extend ServiceSkeleton::Generator

  def self.included(mod)
    mod.extend ServiceSkeleton::ServiceName
    mod.extend ServiceSkeleton::ConfigVariables
    mod.extend ServiceSkeleton::ConfigClass
    mod.extend ServiceSkeleton::MetricsMethods
    mod.extend ServiceSkeleton::SignalsMethods
    mod.extend ServiceSkeleton::UltravisorChildren
  end

  attr_reader :config, :metrics, :logger

  def initialize(*_, metrics:, config:)
    @metrics = metrics
    @config  = config
    @logger  = @config.logger
  end
end

require_relative "service_skeleton/runner"

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
service_skeleton-1.0.5 lib/service_skeleton.rb
service_skeleton-2.0.2 lib/service_skeleton.rb
service_skeleton-2.0.1 lib/service_skeleton.rb
service_skeleton-2.0.0 lib/service_skeleton.rb
service_skeleton-1.0.4 lib/service_skeleton.rb
service_skeleton-0.0.0.1.ENOTAG lib/service_skeleton.rb
service_skeleton-1.0.3 lib/service_skeleton.rb
service_skeleton-1.0.2 lib/service_skeleton.rb
service_skeleton-1.0.1 lib/service_skeleton.rb
service_skeleton-0.0.0.49.g47046b9 lib/service_skeleton.rb
service_skeleton-0.0.0.48.g4a40599 lib/service_skeleton.rb