Ginga-Client-Go

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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