Sha256: 438bcf54d55e1273bbe8ab434c98597cce161bf12da49d0d780581f046e6cc3f

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 Bytes

Contents

# coding: utf-8
# frozen_string_literal: true

module MicroRb
  module Clients
    class Sidecar
      include Base

      base_uri MicroRb::Configuration.instance.sidecar_uri

      def self.register(service)
        post(registry_path, options(service))
      end

      def self.remove(service)
        delete(registry_path, options(service))
      end

      def self.registry_path
        MicroRb::Configuration.instance.sidecar_registry
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
micro-rb-0.1.0.rc3 lib/micro/clients/sidecar.rb
micro-rb-0.1.0.rc2 lib/micro/clients/sidecar.rb