syncr

package module
v0.0.0-...-9ffcb7f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 12 Imported by: 0

README

syncr

sync plugins for go-micro.dev/v4

syncr.NewMemorySync fork from https://github.com/go-micro/plugins/tree/main/v4/sync/memory syncr.NewConsulSync fork from https://github.com/go-micro/plugins/tree/main/v4/sync/consul

wait

  • > 0, wait for some time if failing get
  • = 0, no wait, return err if failing get
  • < 0, wait forever if failing get

ttl

  • > 0, auto unlock after ttl
  • <= 0, never auto unlock

Documentation

Overview

Package consul is a consul implementation of lock fork from github.com/go-micro/plugins/v4/sync/consul. since the official implementation has wait time bug. and the pr has not been merged yet.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsulSync

func NewConsulSync(opts ...sync.Option) sync.Sync

func NewMemorySync

func NewMemorySync(opts ...sync.Option) sync.Sync

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL