pegasus-go-client

module
v0.0.0-...-5d3959e Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: Apache-2.0

README

pegasus-go-client

This is the official go client for xiaomi/pegasus.

Requirement

Go1.8+

Example

    import (
        "context"
        
    	"github.com/XiaoMi/pegasus-go-client/pegasus"
    )
    
    cfg := Config{
        MetaServers: []string{"0.0.0.0:34601", "0.0.0.0:34602", "0.0.0.0:34603"},
    }
    
    client := NewClient(cfg)
    defer client.Close()
    
    tb, err := client.OpenTable(context.Background(), "temp")
    err = tb.Set(context.Background(), []byte("h1"), []byte("s1"), []byte("v1"))

Directories

Path Synopsis
idl
rpc

Jump to

Keyboard shortcuts

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