Documentation ¶
Index ¶
- Constants
- Variables
- type AccessKey
- type Address
- type AddressList
- type AddressMap
- func (m *AddressMap) Addresses() map[raft.ServerID]raft.ServerAddress
- func (m *AddressMap) Join(id raft.ServerID, host string) *AddressMap
- func (m *AddressMap) MarshalJSON() ([]byte, error)
- func (m *AddressMap) Scheme() string
- func (m *AddressMap) String() string
- func (m *AddressMap) UnmarshalJSON(bytes []byte) error
- type Addresser
- type App
- type DataPartition
- type DataPartitionID
- type DataService
- type Gateway
- type GroupID
- type LeaderChecker
- type ListAllMyBucketsResult
- type Member
- type MetaKey
- type MetaPartition
- type MetaService
- type Metadata
- type MuxDefiner
- type NodeHost
- type Peer
- type Peers
- type Placer
- type RpcID
- type SecretKey
- type Server
- type SigChecker
- type StreamLayerMux
- type Tenant
- type Tenants
Constants ¶
View Source
const ( HostScheme = "http" RaftScheme = "tcp" RootPath = "/" HostSep = "," )
View Source
const ( DefaultMetaserverID = "metaserver0" DefaultMetaserverHost = "127.0.0.1:11651" DefaultMetaServerMultiPeer = "127.0.0.1:11661" )
View Source
const ( DefaultPlacerID = "placer0" DefaultPlacerHost = "127.0.0.1:11551" DefaultPlacerPeer = "127.0.0.1:11561" RpcPlacerListGroups RpcID = "list-groups" RpcPlacerGenerateGroup RpcID = "generate-group" )
View Source
const DefaultGatewayHost = "127.0.0.1:11451"
Variables ¶
View Source
var ( ErrAddressEmptyHosts = errors.New("empty hosts in address") ErrAddressEmptyServerIDs = errors.New("empty server IDs in address") ErrAddressMapMismatched = errors.New("map mismatched in address") )
View Source
var ( ErrEmptyPeers = errors.New("empty peers") ErrPeerUnknown = errors.New("peer unknown") )
View Source
var ( DefaultPlacerHostMap = NewAddressMap(HostScheme).Join(DefaultPlacerID, DefaultPlacerHost) DefaultPlacerPeerMap = NewAddressMap(RaftScheme).Join(DefaultPlacerID, DefaultPlacerPeer) )
View Source
var DefaultMetaserverMultipeerMap = NewAddressMap(RaftScheme).Join(DefaultMetaserverID, DefaultMetaServerMultiPeer)
View Source
var ErrNotLeader = errors.New("not leader")
Functions ¶
This section is empty.
Types ¶
type AddressList ¶
type AddressList struct {
// contains filtered or unexported fields
}
func (*AddressList) MarshalJSON ¶
func (l *AddressList) MarshalJSON() ([]byte, error)
func (*AddressList) String ¶
func (l *AddressList) String() string
func (*AddressList) UnmarshalJSON ¶
func (l *AddressList) UnmarshalJSON(bytes []byte) error
type AddressMap ¶
type AddressMap struct {
// contains filtered or unexported fields
}
func NewAddressMap ¶
func NewAddressMap(scheme string) *AddressMap
func ParseAddressMap ¶
func ParseAddressMap(rawURL string) (*AddressMap, error)
func (*AddressMap) Addresses ¶
func (m *AddressMap) Addresses() map[raft.ServerID]raft.ServerAddress
func (*AddressMap) Join ¶
func (m *AddressMap) Join(id raft.ServerID, host string) *AddressMap
func (*AddressMap) MarshalJSON ¶
func (m *AddressMap) MarshalJSON() ([]byte, error)
func (*AddressMap) Scheme ¶
func (m *AddressMap) Scheme() string
func (*AddressMap) String ¶
func (m *AddressMap) String() string
func (*AddressMap) UnmarshalJSON ¶
func (m *AddressMap) UnmarshalJSON(bytes []byte) error
type DataPartition ¶
type DataPartition interface{}
type DataPartitionID ¶
type DataPartitionID interface{}
type DataService ¶
type DataService interface{}
type Gateway ¶
type Gateway interface {
ListBuckets() (*ListAllMyBucketsResult, error)
}
type LeaderChecker ¶
type LeaderChecker interface {
CheckLeader() error
}
type ListAllMyBucketsResult ¶
type ListAllMyBucketsResult struct{}
type MetaPartition ¶
type MetaService ¶
type MetaService interface {
Lookup(key MetaKey) (MetaPartition, error)
}
type MuxDefiner ¶
type Peer ¶
type Peer interface { Addresser ID() raft.ServerID Suffrage() raft.ServerSuffrage json.Marshaler json.Unmarshaler }
type SigChecker ¶
type SigChecker interface { CheckSigV4(r *http.Request) (bool, error) WithSigV4(f http.HandlerFunc) http.HandlerFunc }
type StreamLayerMux ¶
type StreamLayerMux interface { io.Closer NetworkLayer(groupID GroupID) raft.StreamLayer }
Click to show internal directories.
Click to hide internal directories.