diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2018-07-28 21:03:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-28 21:03:29 -0700 |
| commit | 452bd0b01393e53e958fb9825bf1f27e6b3522df (patch) | |
| tree | e1a61e592118f9696b7f51501d3b3fd0f6c3eeb5 /weed/wdclient/wdclient.go | |
| parent | 97603d6e176dd2b9f2aebd9f6122a8c60481463a (diff) | |
| parent | d3205a007071f26587affb416f71b5c63854b863 (diff) | |
| download | seaweedfs-452bd0b01393e53e958fb9825bf1f27e6b3522df.tar.xz seaweedfs-452bd0b01393e53e958fb9825bf1f27e6b3522df.zip | |
Merge pull request #702 from chrislusf/add_topo_listener
Add volume id location change listener
Diffstat (limited to 'weed/wdclient/wdclient.go')
| -rw-r--r-- | weed/wdclient/wdclient.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/weed/wdclient/wdclient.go b/weed/wdclient/wdclient.go new file mode 100644 index 000000000..722f4d061 --- /dev/null +++ b/weed/wdclient/wdclient.go @@ -0,0 +1,15 @@ +package wdclient + +import ( + "context" +) + +type SeaweedClient struct { + *MasterClient +} + +func NewSeaweedClient(ctx context.Context, clientName string, masters []string) *SeaweedClient { + return &SeaweedClient{ + MasterClient: NewMasterClient(ctx, clientName, masters), + } +} |
