-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refract Pulsar Partitioned Topics to MVVM
- Loading branch information
Showing
12 changed files
with
117 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"appName": "Paas Dashboard", | ||
"refresh": "Refresh" | ||
"refresh": "Refresh", | ||
"clearBacklog": "Clear Backlog" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"appName": "Paas 仪表盘", | ||
"refresh": "刷新" | ||
"refresh": "刷新", | ||
"clearBacklog": "清理积压" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,12 @@ | ||
import 'package:paas_dashboard_flutter/module/pulsar/pulsar_topic.dart'; | ||
|
||
class PulsarSubscriptionModule { | ||
final String subscriptionName; | ||
|
||
PulsarSubscriptionModule(this.subscriptionName); | ||
} | ||
|
||
class SubscriptionPageContext { | ||
final TopicPageContext topicPageContext; | ||
final PulsarSubscriptionModule subscriptionModule; | ||
|
||
SubscriptionPageContext(this.topicPageContext, this.subscriptionModule); | ||
|
||
String get host { | ||
return topicPageContext.host; | ||
} | ||
|
||
int get port { | ||
return topicPageContext.port; | ||
} | ||
|
||
String get tenantName { | ||
return topicPageContext.tenantName; | ||
} | ||
|
||
String get namespaceName { | ||
return topicPageContext.namespaceName; | ||
} | ||
|
||
String get topicName { | ||
return topicPageContext.topicName; | ||
} | ||
} | ||
|
||
class SubscriptionResp { | ||
final String subscriptionName; | ||
final int backlog; | ||
final double rateOut; | ||
|
||
SubscriptionResp(this.subscriptionName, this.backlog, this.rateOut); | ||
|
||
SubscriptionResp deepCopy() { | ||
return new SubscriptionResp( | ||
this.subscriptionName, this.backlog, this.rateOut); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.