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.

tcc_service.go 343 B

3 years ago
123456789101112131415
  1. package tcc
  2. import (
  3. "context"
  4. )
  5. import (
  6. "github.com/seata/seata-go/pkg/rm/api"
  7. )
  8. type TCCService interface {
  9. Prepare(ctx context.Context, param interface{}) error
  10. Commit(ctx context.Context, businessActionContext api.BusinessActionContext) error
  11. Rollback(ctx context.Context, businessActionContext api.BusinessActionContext) error
  12. }

Go Implementation For Seata