Skip to content

catror/pegasus-go-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"))

About

The official go client for xiaomi/pegasus.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%