Documentation
¶
Index ¶
- type Location
- type MasterClient
- func (mc *MasterClient) FindLeaderFromOtherPeers(myMasterAddress string) (leader string)
- func (vc *MasterClient) GetLocations(vid uint32) (locations []Location, found bool)
- func (mc *MasterClient) GetMaster() string
- func (vc *MasterClient) GetVidLocations(vid string) (locations []Location, err error)
- func (mc *MasterClient) KeepConnectedToMaster()
- func (vc *MasterClient) LookupFileId(fileId string) (fullUrls []string, err error)
- func (vc *MasterClient) LookupVolumeServerUrl(vid string) (serverUrls []string, err error)
- func (mc *MasterClient) WaitUntilConnected()
- func (mc *MasterClient) WithClient(fn func(client master_pb.SeaweedClient) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MasterClient ¶
type MasterClient struct {
// contains filtered or unexported fields
}
func NewMasterClient ¶
func NewMasterClient(grpcDialOption grpc.DialOption, clientType string, clientHost string, clientGrpcPort uint32, masters []string) *MasterClient
func (*MasterClient) FindLeaderFromOtherPeers ¶
func (mc *MasterClient) FindLeaderFromOtherPeers(myMasterAddress string) (leader string)
func (*MasterClient) GetLocations ¶
func (*MasterClient) GetMaster ¶
func (mc *MasterClient) GetMaster() string
func (*MasterClient) GetVidLocations ¶
func (*MasterClient) KeepConnectedToMaster ¶
func (mc *MasterClient) KeepConnectedToMaster()
func (*MasterClient) LookupFileId ¶
func (*MasterClient) LookupVolumeServerUrl ¶
func (*MasterClient) WaitUntilConnected ¶
func (mc *MasterClient) WaitUntilConnected()
func (*MasterClient) WithClient ¶
func (mc *MasterClient) WithClient(fn func(client master_pb.SeaweedClient) error) error
Click to show internal directories.
Click to hide internal directories.