🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

github.com/protocolone/go-micro-plugins/wrapper/select/version

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/protocolone/go-micro-plugins/wrapper/select/version

v0.0.0-20210201075650-b057e5c5b0a4
Source
Go
Version published
Created
Source

Version Wrapper

The version wrapper is a stateful client wrapper which gives you a ability to select only services with specified version or with fallback version.

That suitable for easy upgrade running services without downtime.

Usage

Pass in the wrapper when you create your service

wrapper := version.NewClientWrapper("v1.0.1", "latest")

service := micro.NewService(
	micro.Name("foo"),
	micro.WrapClient(wrapper),
)

FAQs

Package last updated on 01 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts