Documentation ¶
Index ¶
- type ApplicationInfo
- type CargoComm
- func (cc *CargoComm) AcquireWriteLock(ctx context.Context, appInfo *cargoToMgr.AppInfo) (*cargoToMgr.LockAck, error)
- func (cc *CargoComm) GetReplicaInfo(ctx context.Context, appInfo *cargoToMgr.AppInfo) (*cargoToMgr.ReplicaInfo, error)
- func (cc *CargoComm) RegisterToMgr(ctx context.Context, cargoInfo *cargoToMgr.CargoInfo) (*cargoToMgr.Ack, error)
- func (cc *CargoComm) ReleaseWriteLock(ctx context.Context, appInfo *cargoToMgr.AppInfo) (*cargoToMgr.ReleaseAck, error)
- type CargoMgrInfo
- type CargoNode
- type TaskComm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationInfo ¶
type CargoComm ¶
type CargoComm struct { cargoToMgr.UnimplementedRpcCargoToMgrServer // contains filtered or unexported fields }
func (*CargoComm) AcquireWriteLock ¶
func (cc *CargoComm) AcquireWriteLock(ctx context.Context, appInfo *cargoToMgr.AppInfo) (*cargoToMgr.LockAck, error)
func (*CargoComm) GetReplicaInfo ¶
func (cc *CargoComm) GetReplicaInfo(ctx context.Context, appInfo *cargoToMgr.AppInfo) (*cargoToMgr.ReplicaInfo, error)
func (*CargoComm) RegisterToMgr ¶
func (cc *CargoComm) RegisterToMgr(ctx context.Context, cargoInfo *cargoToMgr.CargoInfo) (*cargoToMgr.Ack, error)
func (*CargoComm) ReleaseWriteLock ¶
func (cc *CargoComm) ReleaseWriteLock(ctx context.Context, appInfo *cargoToMgr.AppInfo) (*cargoToMgr.ReleaseAck, error)
type CargoMgrInfo ¶
type CargoMgrInfo struct { Port string CC CargoComm TCM TaskComm Cargos map[string]CargoNode AppInfo map[string]*ApplicationInfo }
func Init ¶
func Init(port string) *CargoMgrInfo
func (*CargoMgrInfo) ListenRoutine ¶
func (cargoMgrInfo *CargoMgrInfo) ListenRoutine(wg *sync.WaitGroup)
type TaskComm ¶
type TaskComm struct { taskToCargoMgr.UnimplementedRpcTaskToCargoMgrServer // contains filtered or unexported fields }
func (*TaskComm) RequestCargo ¶
func (tcm *TaskComm) RequestCargo(ctx context.Context, requesterInfo *taskToCargoMgr.RequesterInfo) (*taskToCargoMgr.Cargos, error)
Click to show internal directories.
Click to hide internal directories.