code: func (s *Store) txnIntention(tx *memdb.Txn, idx uint64, op *structs.TxnIntentionOp) error {
  	switch op.Op {
  	case structs.IntentionOpCreate, structs.IntentionOpUpdate:
  		return s.intentionSetTxn(tx, idx, op.Intention)
  	case structs.IntentionOpDelete:
  		return s.intentionDeleteTxn(tx, idx, op.Intention.ID)
  	default:
  		return fmt.Errorf("unknown Intention op %q", op.Op)
  	}
  }
docs: // txnIntention handles all Intention-related operations.