You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

resource.go 584 B

5 years ago
12345678910111213141516171819202122232425262728
  1. package model
  2. import "github.com/dk-lockdown/seata-golang/meta"
  3. type IResource interface {
  4. /**
  5. * Get the resource group id.
  6. * e.g. master and slave data-source should be with the same resource group id.
  7. *
  8. * @return resource group id.
  9. */
  10. getResourceGroupId() string
  11. /**
  12. * Get the resource id.
  13. * e.g. url of a data-source could be the id of the db data-source resource.
  14. *
  15. * @return resource id.
  16. */
  17. getResourceId() string
  18. /**
  19. * get resource type, BranchType_AT, BranchType_TCC, BranchType_SAGA and XA
  20. *
  21. * @return
  22. */
  23. getBranchType() meta.BranchType
  24. }

Go Implementation For Seata