Skip to content

FastSchnell/Ginga-Client-Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ginga-Client-Go

分布式锁 go版client

image

Installation

Install Ginga-Client-Go using the "go get" command:

go get github.com/FastSchnell/Ginga-Client-Go/ginga

Usage

import "Ginga-Client-Go/ginga"

func testLock() {
    c := ginga.Client{
        Token: "test_token",
        Endpoint: "0.0.0.0:1903",
        Nonce: "test_nonce",
    }

    err := c.Lock()
    if err != nil {
        fmt.Println(err.Error())
        return
    }

    defer c.Unlock()
}

Server

Ginga Server

License

Ginga-Client-Go is available under the Apache License, Version 2.0.

About

分布式锁 go版client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages