subscription.go 701 B

12345678910111213141516171819
  1. package datahub
  2. type SubscriptionEntry struct {
  3. SubId string `json:"SubId"`
  4. TopicName string `json:"TopicName"`
  5. IsOwner bool `json:"IsOwner"`
  6. Type SubscriptionType `json:"Type"`
  7. State SubscriptionState `json:"State,omitempty"`
  8. Comment string `json:"Comment,omitempty"`
  9. CreateTime int64 `json:"CreateTime"`
  10. LastModifyTime int64 `json:"LastModifyTime"`
  11. }
  12. type SubscriptionOffset struct {
  13. Timestamp int64 `json:"Timestamp"`
  14. Sequence int64 `json:"Sequence"`
  15. VersionId int64 `json:"Version"`
  16. SessionId *int64 `json:"SessionId"`
  17. }