mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-24 05:03:52 +08:00
adjust API
This commit is contained in:
@@ -5,15 +5,11 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type SeaweedClient struct {
|
type SeaweedClient struct {
|
||||||
ctx context.Context
|
*MasterClient
|
||||||
Master string
|
|
||||||
ClientName string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewSeaweedClient(ctx context.Context, clientName string, masters []string) *SeaweedClient {
|
func NewSeaweedClient(ctx context.Context, clientName string, masters []string) *SeaweedClient {
|
||||||
return &SeaweedClient{
|
return &SeaweedClient{
|
||||||
ctx: ctx,
|
MasterClient: NewMasterClient(ctx, clientName, masters),
|
||||||
ClientName: clientName,
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user