wdclient

package
v0.0.0-...-2206af0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	Url       string `json:"url,omitempty"`
	PublicUrl string `json:"publicUrl,omitempty"`
}

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

func (vc *MasterClient) GetLocations(vid uint32) (locations []Location, found bool)

func (*MasterClient) GetMaster

func (mc *MasterClient) GetMaster() string

func (*MasterClient) GetRandomLocation

func (vc *MasterClient) GetRandomLocation(vid uint32) (serverUrl string, err error)

func (*MasterClient) GetVidLocations

func (vc *MasterClient) GetVidLocations(vid string) (locations []Location, err error)

func (*MasterClient) KeepConnectedToMaster

func (mc *MasterClient) KeepConnectedToMaster()

func (*MasterClient) LookupFileId

func (vc *MasterClient) LookupFileId(fileId string) (fullUrl string, err error)

func (*MasterClient) LookupVolumeServer

func (vc *MasterClient) LookupVolumeServer(fileId string) (volumeServer string, err error)

func (*MasterClient) LookupVolumeServerUrl

func (vc *MasterClient) LookupVolumeServerUrl(vid string) (serverUrl string, err error)

func (*MasterClient) WaitUntilConnected

func (mc *MasterClient) WaitUntilConnected()

func (*MasterClient) WithClient

func (mc *MasterClient) WithClient(fn func(client master_pb.SeaweedClient) error) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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