Documentation ¶
Index ¶
- func RegisterPlacementServer(s *grpc.Server, srv PlacementServer)
- type Host
- func (*Host) Descriptor() ([]byte, []int)
- func (m *Host) GetEntities() []string
- func (m *Host) GetId() string
- func (m *Host) GetLoad() int64
- func (m *Host) GetName() string
- func (m *Host) GetPort() int64
- func (*Host) ProtoMessage()
- func (m *Host) Reset()
- func (m *Host) String() string
- func (m *Host) XXX_DiscardUnknown()
- func (m *Host) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Host) XXX_Merge(src proto.Message)
- func (m *Host) XXX_Size() int
- func (m *Host) XXX_Unmarshal(b []byte) error
- type PlacementClient
- type PlacementOrder
- func (*PlacementOrder) Descriptor() ([]byte, []int)
- func (m *PlacementOrder) GetOperation() string
- func (m *PlacementOrder) GetTables() *PlacementTables
- func (*PlacementOrder) ProtoMessage()
- func (m *PlacementOrder) Reset()
- func (m *PlacementOrder) String() string
- func (m *PlacementOrder) XXX_DiscardUnknown()
- func (m *PlacementOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlacementOrder) XXX_Merge(src proto.Message)
- func (m *PlacementOrder) XXX_Size() int
- func (m *PlacementOrder) XXX_Unmarshal(b []byte) error
- type PlacementServer
- type PlacementTable
- func (*PlacementTable) Descriptor() ([]byte, []int)
- func (m *PlacementTable) GetHosts() map[uint64]string
- func (m *PlacementTable) GetLoadMap() map[string]*Host
- func (m *PlacementTable) GetSortedSet() []uint64
- func (m *PlacementTable) GetTotalLoad() int64
- func (*PlacementTable) ProtoMessage()
- func (m *PlacementTable) Reset()
- func (m *PlacementTable) String() string
- func (m *PlacementTable) XXX_DiscardUnknown()
- func (m *PlacementTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlacementTable) XXX_Merge(src proto.Message)
- func (m *PlacementTable) XXX_Size() int
- func (m *PlacementTable) XXX_Unmarshal(b []byte) error
- type PlacementTables
- func (*PlacementTables) Descriptor() ([]byte, []int)
- func (m *PlacementTables) GetEntries() map[string]*PlacementTable
- func (m *PlacementTables) GetVersion() string
- func (*PlacementTables) ProtoMessage()
- func (m *PlacementTables) Reset()
- func (m *PlacementTables) String() string
- func (m *PlacementTables) XXX_DiscardUnknown()
- func (m *PlacementTables) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlacementTables) XXX_Merge(src proto.Message)
- func (m *PlacementTables) XXX_Size() int
- func (m *PlacementTables) XXX_Unmarshal(b []byte) error
- type Placement_ReportDaprStatusClient
- type Placement_ReportDaprStatusServer
- type UnimplementedPlacementServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPlacementServer ¶ added in v0.8.0
func RegisterPlacementServer(s *grpc.Server, srv PlacementServer)
Types ¶
type Host ¶
type Host struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Port int64 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` Load int64 `protobuf:"varint,3,opt,name=load,proto3" json:"load,omitempty"` Entities []string `protobuf:"bytes,4,rep,name=entities,proto3" json:"entities,omitempty"` Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Host) Descriptor ¶
func (*Host) GetEntities ¶
func (*Host) ProtoMessage ¶
func (*Host) ProtoMessage()
func (*Host) XXX_DiscardUnknown ¶
func (m *Host) XXX_DiscardUnknown()
func (*Host) XXX_Unmarshal ¶
type PlacementClient ¶ added in v0.8.0
type PlacementClient interface {
ReportDaprStatus(ctx context.Context, opts ...grpc.CallOption) (Placement_ReportDaprStatusClient, error)
}
PlacementClient is the client API for Placement service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPlacementClient ¶ added in v0.8.0
func NewPlacementClient(cc *grpc.ClientConn) PlacementClient
type PlacementOrder ¶
type PlacementOrder struct { Tables *PlacementTables `protobuf:"bytes,1,opt,name=tables,proto3" json:"tables,omitempty"` Operation string `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PlacementOrder) Descriptor ¶
func (*PlacementOrder) Descriptor() ([]byte, []int)
func (*PlacementOrder) GetOperation ¶
func (m *PlacementOrder) GetOperation() string
func (*PlacementOrder) GetTables ¶
func (m *PlacementOrder) GetTables() *PlacementTables
func (*PlacementOrder) ProtoMessage ¶
func (*PlacementOrder) ProtoMessage()
func (*PlacementOrder) Reset ¶
func (m *PlacementOrder) Reset()
func (*PlacementOrder) String ¶
func (m *PlacementOrder) String() string
func (*PlacementOrder) XXX_DiscardUnknown ¶
func (m *PlacementOrder) XXX_DiscardUnknown()
func (*PlacementOrder) XXX_Marshal ¶
func (m *PlacementOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlacementOrder) XXX_Merge ¶
func (m *PlacementOrder) XXX_Merge(src proto.Message)
func (*PlacementOrder) XXX_Size ¶
func (m *PlacementOrder) XXX_Size() int
func (*PlacementOrder) XXX_Unmarshal ¶
func (m *PlacementOrder) XXX_Unmarshal(b []byte) error
type PlacementServer ¶ added in v0.8.0
type PlacementServer interface {
ReportDaprStatus(Placement_ReportDaprStatusServer) error
}
PlacementServer is the server API for Placement service.
type PlacementTable ¶
type PlacementTable struct { Hosts map[uint64]string `` /* 152-byte string literal not displayed */ SortedSet []uint64 `protobuf:"varint,2,rep,packed,name=sorted_set,json=sortedSet,proto3" json:"sorted_set,omitempty"` LoadMap map[string]*Host `` /* 170-byte string literal not displayed */ TotalLoad int64 `protobuf:"varint,4,opt,name=total_load,json=totalLoad,proto3" json:"total_load,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PlacementTable) Descriptor ¶
func (*PlacementTable) Descriptor() ([]byte, []int)
func (*PlacementTable) GetHosts ¶
func (m *PlacementTable) GetHosts() map[uint64]string
func (*PlacementTable) GetLoadMap ¶
func (m *PlacementTable) GetLoadMap() map[string]*Host
func (*PlacementTable) GetSortedSet ¶
func (m *PlacementTable) GetSortedSet() []uint64
func (*PlacementTable) GetTotalLoad ¶
func (m *PlacementTable) GetTotalLoad() int64
func (*PlacementTable) ProtoMessage ¶
func (*PlacementTable) ProtoMessage()
func (*PlacementTable) Reset ¶
func (m *PlacementTable) Reset()
func (*PlacementTable) String ¶
func (m *PlacementTable) String() string
func (*PlacementTable) XXX_DiscardUnknown ¶
func (m *PlacementTable) XXX_DiscardUnknown()
func (*PlacementTable) XXX_Marshal ¶
func (m *PlacementTable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlacementTable) XXX_Merge ¶
func (m *PlacementTable) XXX_Merge(src proto.Message)
func (*PlacementTable) XXX_Size ¶
func (m *PlacementTable) XXX_Size() int
func (*PlacementTable) XXX_Unmarshal ¶
func (m *PlacementTable) XXX_Unmarshal(b []byte) error
type PlacementTables ¶
type PlacementTables struct { Entries map[string]*PlacementTable `` /* 155-byte string literal not displayed */ Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PlacementTables) Descriptor ¶
func (*PlacementTables) Descriptor() ([]byte, []int)
func (*PlacementTables) GetEntries ¶
func (m *PlacementTables) GetEntries() map[string]*PlacementTable
func (*PlacementTables) GetVersion ¶
func (m *PlacementTables) GetVersion() string
func (*PlacementTables) ProtoMessage ¶
func (*PlacementTables) ProtoMessage()
func (*PlacementTables) Reset ¶
func (m *PlacementTables) Reset()
func (*PlacementTables) String ¶
func (m *PlacementTables) String() string
func (*PlacementTables) XXX_DiscardUnknown ¶
func (m *PlacementTables) XXX_DiscardUnknown()
func (*PlacementTables) XXX_Marshal ¶
func (m *PlacementTables) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlacementTables) XXX_Merge ¶
func (m *PlacementTables) XXX_Merge(src proto.Message)
func (*PlacementTables) XXX_Size ¶
func (m *PlacementTables) XXX_Size() int
func (*PlacementTables) XXX_Unmarshal ¶
func (m *PlacementTables) XXX_Unmarshal(b []byte) error
type Placement_ReportDaprStatusClient ¶ added in v0.8.0
type Placement_ReportDaprStatusClient interface { Send(*Host) error Recv() (*PlacementOrder, error) grpc.ClientStream }
type Placement_ReportDaprStatusServer ¶ added in v0.8.0
type Placement_ReportDaprStatusServer interface { Send(*PlacementOrder) error Recv() (*Host, error) grpc.ServerStream }
type UnimplementedPlacementServer ¶ added in v0.8.0
type UnimplementedPlacementServer struct { }
UnimplementedPlacementServer can be embedded to have forward compatible implementations.
func (*UnimplementedPlacementServer) ReportDaprStatus ¶ added in v0.8.0
func (*UnimplementedPlacementServer) ReportDaprStatus(srv Placement_ReportDaprStatusServer) error
Click to show internal directories.
Click to hide internal directories.